Skip to content

Commit

Permalink
style: clean types
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Jul 23, 2024
1 parent 45556ec commit e9b0b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/v1/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export type OpportunityIdResponseRaw = {

type InteractionDateResponseBase = {
interaction_dates?: {
[key in InteractionDateKey]: never
[key in InteractionDateKey]: unknown
}
interactions?: {
[key in InteractionType]: never
[key in InteractionType]: unknown
}
}

Expand Down Expand Up @@ -408,9 +408,7 @@ export class Organizations {
): PagedOrganizationResponse => {
return {
...json,
organizations: json.organizations.map<
OrganizationResponse
>(
organizations: json.organizations.map(
transformInteractionDateResponseRaw,
),
}
Expand Down
2 changes: 1 addition & 1 deletion src/v1/persons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class Persons {
): PagedPersonResponse => {
return {
...json,
persons: json.persons.map<PersonResponse>(
persons: json.persons.map(
transformInteractionDateResponseRaw,
),
}
Expand Down

0 comments on commit e9b0b59

Please sign in to comment.