Skip to content

Commit

Permalink
feat(types): add type-fest types
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jan 24, 2024
1 parent 1055fcc commit f409fb3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/types/LiteralUnion.ts

This file was deleted.

33 changes: 32 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export type NodeJSTimeout = ReturnType<typeof setTimeout>;
export type NodeJSTimer = ReturnType<typeof setInterval>;

export type { Brand } from './Brand';
export type { LiteralUnion } from './LiteralUnion';
export * from './Array';
export * from './AnyFunction';
export * from './Object';
Expand All @@ -13,3 +12,35 @@ export * from './IsAny';
export * from './IsNever';
export * from './IsUnknown';
export * from './Trim';

export type {
LiteralUnion,
AsyncReturnType,
FixedLengthArray,
PackageJson,
TsConfigJson,
JsonValue,
JsonArray,
JsonObject,
CamelCase,
SnakeCase,
KebabCase,
PascalCase,
DelimiterCase,
ScreamingSnakeCase as ConstantCase,
Class,
Asyncify,
UnionToIntersection,
Integer,
NegativeInteger,
NonNegativeInteger,
Negative,
NonNegative,
Finite,
PositiveInfinity,
NegativeInfinity,
Simplify,
RequireAtLeastOne,
RequireExactlyOne,
RequireAllOrNone,
} from 'type-fest';

0 comments on commit f409fb3

Please sign in to comment.