diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-13 20:32:20 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-13 20:33:01 +0530 |
| commit | 518a6a9ee31f0b03f08cb77bc613b4d708bb640b (patch) | |
| tree | 7f17ce66f337dee573192ce06a24385415048ae2 /stdlib/util.ts | |
| parent | 42f8c401dc9519bc8b2d386ce9eda072144a46d0 (diff) | |
| download | ts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.tar.gz ts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.zip | |
chore: prettier
Diffstat (limited to '')
| -rw-r--r-- | stdlib/util.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/stdlib/util.ts b/stdlib/util.ts index 4851392..20a41fb 100644 --- a/stdlib/util.ts +++ b/stdlib/util.ts @@ -21,8 +21,10 @@ export type ADT<D extends Record<string, any>> = { ? { t: Rec[keyof Rec] } & { [k in keyof Rec]: ADTConstructor<Rec[k]> } : never -export type Equals<Left, Right> = - [Left] extends [Right] ? ([Right] extends [Left] ? true : false) : false +export type Equals<Left, Right> = [Left] extends [Right] + ? [Right] extends [Left] + ? true + : false + : false export type Not<B extends boolean> = B extends true ? false : true - |
