@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
9 lines (8 loc) • 436 B
text/typescript
// https://github.com/type-challenges/type-challenges/blob/main/utils/index.d.ts
// These types are used for testing to check that 2 types are the same
export type Expect<T extends true> = T;
export type ExpectFalse<T extends false> = T;
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2
? true
: false;
export type ExpectExtends<VALUE, EXPECTED> = EXPECTED extends VALUE ? true : false;