mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-01 17:10:04 +00:00
Merge pull request #34392 from VincentLanglet/patch-4
[React-Select] Less any types
This commit is contained in:
3
types/react-select/lib/types.d.ts
vendored
3
types/react-select/lib/types.d.ts
vendored
@@ -1,4 +1,5 @@
|
||||
import * as React from 'react';
|
||||
import { Props as SelectProps } from './Select';
|
||||
|
||||
export type OptionsType<OptionType> = OptionType[];
|
||||
|
||||
@@ -48,7 +49,7 @@ export interface CommonProps<OptionType> {
|
||||
isMulti: boolean;
|
||||
options: OptionsType<OptionType>;
|
||||
selectOption: (option: OptionType) => void;
|
||||
selectProps: any;
|
||||
selectProps: SelectProps<OptionType>;
|
||||
setValue: (value: ValueType<OptionType>, action: ActionTypes) => void;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-null-undefined-union": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user