From 440eb35cf4d0658d6e713233a8d29780ef6d7a8f Mon Sep 17 00:00:00 2001 From: Yamiteru Date: Sat, 6 Jul 2024 19:41:57 +0200 Subject: [PATCH] feat: remove library-specific types --- index.d.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/index.d.ts b/index.d.ts index 72ee9da..2c89bf5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; - -export type InferAssertion<$Assertion extends Assertion> = - $Assertion extends Assertion ? $Type : never; - export type Intersection<$Values extends unknown[]> = $Values extends [ infer $Head, ...infer $Tail,