UNPKG

353 BTypeScriptView Raw
1// prettier-ignore
2declare function Type<T>(x: T): T extends string ? "String"
3 : T extends number ? "Number"
4 : T extends boolean ? "Boolean"
5 : T extends null ? "Null"
6 : T extends undefined ? "Undefined"
7 : T extends object ? "Object"
8 : "String" | "Number" | "Boolean" | "Null" | "Undefined" | "Object" | undefined;
9export = Type;