2020-07-27 22:41:46 +08:00

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
}