mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
22 lines
352 B
TypeScript
22 lines
352 B
TypeScript
import { Equal, Expect } from '@type-challenges/utils'
|
|
|
|
declare const a: Chainable
|
|
|
|
const result = a
|
|
.option('foo', 123)
|
|
.option('bar', { value: 'Hello World' })
|
|
.option('name', 'type-challenges')
|
|
.get()
|
|
|
|
type cases = [
|
|
Expect<Equal<typeof result, Expected>>
|
|
]
|
|
|
|
type Expected = {
|
|
foo: number
|
|
bar: {
|
|
value: string
|
|
}
|
|
name: string
|
|
}
|