Skip to content

Commit

Permalink
Add RemoveIndexSignature helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 11, 2024
1 parent b80145d commit ec9b157
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utilities/types/RemoveIndexSignature.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export type RemoveIndexSignature<T> = {
[K in keyof T as string extends K ? never
: number extends K ? never
: symbol extends K ? never
: K]: T[K];
};

0 comments on commit ec9b157

Please sign in to comment.