mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
19 lines
326 B
TypeScript
19 lines
326 B
TypeScript
import { Equal, Expect, NotEqual } from './index'
|
|
|
|
type cases = [
|
|
Expect<Equal<true, true>>,
|
|
|
|
// @ts-expect-error
|
|
Expect<Equal<false, true>>,
|
|
|
|
Expect<NotEqual<false, true>>,
|
|
|
|
// @ts-expect-error
|
|
Expect<NotEqual<true, true>>,
|
|
|
|
Expect<Equal<'123', '123'>>,
|
|
|
|
// @ts-expect-error
|
|
Expect<Equal<'123', string>>,
|
|
]
|