Skip to content

Commit

Permalink
Merge pull request #269 from ml054/v5.0
Browse files Browse the repository at this point in the history
removed unnecessary typings
  • Loading branch information
gregolsky authored Mar 19, 2021
2 parents 7068c8d + 07b52a2 commit 8fdf386
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,3 @@ export type ServerResponse<T> = T extends Date|string ? T : {
? string
: ServerResponse<T[K]>;
}

export type ServerCasing<T> = T extends string | number ? T : {
[K in keyof T & string as `${Capitalize<K>}`]: T[K] extends Array<infer R>
? R extends string ? R[] : ServerCasing<R>[]
: T[K] extends object
? ServerCasing<T[K]>
: T[K];
}

0 comments on commit 8fdf386

Please sign in to comment.