1 | // tslint:disable: ban-types
|
2 | // prettier-ignore
|
3 | declare function ToObject<T>(value: T): T extends object ? T
|
4 | : T extends null | undefined ? never
|
5 | : T extends string ? String
|
6 | : T extends number ? Number
|
7 | : T extends boolean ? Boolean
|
8 | : T extends symbol ? Symbol
|
9 | : T extends bigint ? BigInt
|
10 | : object;
|
11 | export = ToObject;
|