mirror of
https://github.com/type-challenges/type-challenges.git
synced 2026-02-01 15:47:22 +00:00
21 lines
328 B
TypeScript
21 lines
328 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>>,
|
|
|
|
]
|