mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Optional parameters for Option interface (#12681)
This commit is contained in:
committed by
Mohamed Hegazy
parent
d056f0b650
commit
cd4b2b6aa1
4
react-select/index.d.ts
vendored
4
react-select/index.d.ts
vendored
@@ -20,9 +20,9 @@ declare namespace ReactSelectClass {
|
||||
|
||||
export interface Option {
|
||||
/** Text for rendering */
|
||||
label: string;
|
||||
label?: string;
|
||||
/** Value for searching */
|
||||
value: string | number;
|
||||
value?: string | number;
|
||||
/**
|
||||
* Allow this option to be cleared
|
||||
* @default true
|
||||
|
||||
Reference in New Issue
Block a user