diff --git a/react-select/react-select.d.ts b/react-select/react-select.d.ts new file mode 100644 index 000000000..b79126345 --- /dev/null +++ b/react-select/react-select.d.ts @@ -0,0 +1,63 @@ +/// + +// Typings for https://github.com/JedWatson/react-select +//***Usage*** +// import ReactSelect = require('react-select'); +// + +declare module "react-select" { + // Import React + import React = require("react"); + + interface Option{ + label : string; + value : any; + } + + interface ReactSelectProps extends React.Props{ + addLabelText? : string; + allowCreate? : boolean; + asyncOptions? : ()=>any; + autoload? : boolean; + backspaceRemoves? : boolean; + cacheAsyncResults? : boolean; + className? : string; + clearable? : boolean; + clearAllText? : string; + clearValueText? : string; + delimiter? : string; + disabled? : boolean; + filterOption? : (option,filterString : string)=>any; + filterOptions? : (options:Array,filterString : string,values : Array)=>any; + ignoreCase? : boolean; // default true whether to perform case-insensitive filtering + inputProps? : any; + isLoading? : boolean; + labelKey? : string; + matchPos? : string; + matchProp? : string; + multi? : boolean; + name? : string; + newOptionCreator? : ()=>any; + noResultsText? : string; + onBlur? : (event)=>void; + onChange? : (newValue)=>void; + onFocus? : (event)=>void; + onInputChange? : (inputValue)=>void; + onOptionLabelClick? : (value, event)=>void; + optionRenderer? : ()=>void; + options? : Array