mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
14 lines
518 B
TypeScript
14 lines
518 B
TypeScript
import { Equal, Expect } from '@type-challenges/utils'
|
|
|
|
const curried1 = Currying((a: string, b: number, c: boolean) => true)
|
|
const curried2 = Currying((a: string, b: number, c: boolean, d: boolean, e: boolean, f: string, g: boolean) => true)
|
|
|
|
type cases = [
|
|
Expect<Equal<
|
|
typeof curried1, (a: string) => (b: number) => (c: boolean) => boolean
|
|
>>,
|
|
Expect<Equal<
|
|
typeof curried2, (a: string) => (b: number) => (c: boolean) => (d: boolean) => (e: boolean) => (f: string) => (g: boolean) => boolean
|
|
>>,
|
|
]
|