Skip to content

Commit

Permalink
feat: add valueOf type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cysword committed Dec 4, 2023
1 parent 634464a commit b08d926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/valueOf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Get the values of a type
*/
export type ValueOf<T extends Record<string, unknown>> = T[keyof T];

0 comments on commit b08d926

Please sign in to comment.