Skip to content

Commit

Permalink
feat(types): add ValueOf (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cysword authored Dec 6, 2023
1 parent 634464a commit 7f5899e
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 7f5899e

Please sign in to comment.