diff --git a/react-select/react-select-tests.ts b/react-select/react-select-tests.ts new file mode 100644 index 000000000..e69de29bb diff --git a/react-select/react-select.d.ts b/react-select/react-select.d.ts new file mode 100644 index 000000000..ee365fe9b --- /dev/null +++ b/react-select/react-select.d.ts @@ -0,0 +1,67 @@ +// Type definitions for react-select v0.9.10 +// Project: https://github.com/JedWatson/react-select +// Definitions by: ESQUIBET Hugo +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +// 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 : string; + } + + interface ReactSelectProps extends React.Props{ + addLabelText? : string; + allowCreate? : boolean; + autoload? : boolean; + backspaceRemoves? : boolean; + cacheAsyncResults? : boolean; + className? : string; + clearable? : boolean; + clearAllText? : string; + clearValueText? : string; + delimiter? : string; + disabled? : boolean; + filterOption? : (option : Option,filterString : string)=>Option; + filterOptions? : (options:Array