mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
- use `export = var` syntax so it works as a global library - put interfaces in ghost module so they don't pollute global namespace - add JSDoc comments for each prop - move old version to -0.9.10
30 lines
559 B
TypeScript
30 lines
559 B
TypeScript
|
|
/// <reference path="../react/react.d.ts" />
|
|
/// <reference path="../react/react-dom.d.ts" />
|
|
/// <reference path="./react-select-0.9.10.d.ts" />
|
|
|
|
import * as React from "react"
|
|
import * as ReactDOM from "react-dom"
|
|
|
|
import Select from "react-select"
|
|
|
|
class SelectTest extends React.Component<React.Props<{}>, {}> {
|
|
|
|
render() {
|
|
return <div>
|
|
<Select />
|
|
</div>
|
|
}
|
|
|
|
}
|
|
|
|
class SelectAsyncTest extends React.Component<React.Props<{}>, {}> {
|
|
|
|
render() {
|
|
return <div>
|
|
<Select.Async />
|
|
</div>
|
|
}
|
|
|
|
}
|