Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Sep 27, 2024
1 parent 123cf0c commit 365ab55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type GetResultsType<T> = T extends { data: any[] }
: never;

// Ensure that the type always returns the paginated results and not a mix of paginated results and the response object
type NormalizeResponse<T> = Omit<T, 'data'> & { data: GetResultsType<T> };
type NormalizeResponse<T> = Omit<T, "data"> & { data: GetResultsType<T> };

type DataType<T> = "data" extends keyof T ? T["data"] : unknown;

Expand Down

0 comments on commit 365ab55

Please sign in to comment.