Skip to content

Commit

Permalink
feat(types): added literal helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kedrzu committed Jun 5, 2024
1 parent 22038a6 commit 0cbb3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/types/src/Literals.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export type LiteralPick<T extends string, I extends T> = I;
export type LiteralExclude<T extends string, I extends T> = Exclude<T, I>;
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export type * from './TypeGuards.js';
export type * from './VoidProps.js';
export type * from './FunctionOnly.js';
export type * from './FunctionParams.js';
export type * from './Literals.js';

export type { Class } from 'type-fest';

0 comments on commit 0cbb3f1

Please sign in to comment.