We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type MultipleSelect = { multiple: true value?: string[] defaultValue?: string[] showCount?: boolean maxSelectionCount?: number } type SingleSelect = { multiple?: false value?: string defaultValue?: string showCount?: never maxSelectionCount?: never } type NativeSelect = { native: true value?: string defaultValue?: string } type DropdownSelect = { native?: false placeholder?: string } & (MultipleSelect | SingleSelect) type UnionSelect = NativeSelect | DropdownSelect type OmitBetter<T, K extends string> = T extends any ? Omit<T, K> : never type B =Prettify<OmitBetter<UnionSelect, 'native'>> export type Prettify<T> = { [K in keyof T]: T[K] // eslint-disable-next-line @typescript-eslint/ban-types } & {} const a :B = { value: ['a'], placeholder: 'c', } const b: UnionSelect = { multiple: true, native: false, ...a, value: ['sf'] } as const
The text was updated successfully, but these errors were encountered:
No branches or pull requests
템플릿 예시입니다.
title:
full_path: src/pages/.md
The text was updated successfully, but these errors were encountered: