Skip to content

Commit

Permalink
feat: remove library-specific types
Browse files Browse the repository at this point in the history
  • Loading branch information
yamiteru committed Jul 6, 2024
1 parent 8b14aff commit 440eb35
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@ export type Pretty<$Type> = { [$Key in keyof $Type]: $Type[$Key] } & {};

export type Nullable<$Type> = $Type | null;

export type Maybe<$Type> = $Type | undefined;
export type Optional<$Type> = $Type | undefined;

export type Nullish<$Type> = $Type | null | undefined;

export type Either<$Left, $Right> = $Left | $Right;

export type Assertion<$Type> = (value: unknown) => asserts value is $Type;

export type UnknownAssertion = Assertion<unknown>;

export type InferAssertion<$Assertion extends Assertion<unknown>> =
$Assertion extends Assertion<infer $Type> ? $Type : never;

export type Intersection<$Values extends unknown[]> = $Values extends [
infer $Head,
...infer $Tail,
Expand Down

0 comments on commit 440eb35

Please sign in to comment.