UNPKG

convex

Version:

Client for the Convex Cloud

9 lines 451 B
/** * Tests if two types are exactly the same. * Taken from https://github.com/Microsoft/TypeScript/issues/27024#issuecomment-421529650 * (Apache Version 2.0, January 2004) */ export type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false; export declare function assert<T extends true>(): void; export declare function assertFalse<T extends false>(): void; //# sourceMappingURL=type_testing.d.ts.map