mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [react-bootstrap] remove incorrect exports
several sub-components are exported in index.d.ts, when they are not
in the library itself.
should fail:
`import { DropdownMenu } from 'react-bootstrap';`
should succeed:
`import { Dropdown } from 'react-bootstrap';`
`import DropdownMenu from 'react-bootstrap/lib/DropdownMenu';`
* [react-bootstrap] fix Dropdown.Menu typing
DropdownMenu uses `export =`, so the import must use require, `import *`.
this matches the pattern in Carousel, FormControl, etc.
|
||
|---|---|---|
| .. | ||
| lib | ||
| test | ||
| index.d.ts | ||
| tsconfig.json | ||
| tslint.json | ||