mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Re-export classes directly, don't re-subclass This cuts about 30% of the types the Typescript compiler was creating in TS 3.3 to compile reactstrap. I don't know how many types it was creating in 3.4 because it would run out of memory. Note that lint still crashes because it runs out of memory. I'll continue improving performance. * Remove strict generic checking This reverts the strictness part of #26094 without changing its interface. It retains 1. string index signatures, so that arbitrary props can be passed in. 2. extending from React.Componenent, so that individual types can be subclassed. 3. Type parameters on the individual types. However, string index signatures can no longer be avoided, and type parameters are ignored. This preserves interface compatibility -- existing code will not break from this change -- but disables excess prop checking. It's possible that a breaking change that returns the type package to its old strict behaviour can be made at the same time as a breaking change of reactstrap itself. This change improves performance dramatically, and allows linting to succeed without running out of memory. * Add missing semicolon |
||
|---|---|---|
| .. | ||
| lib | ||
| v4 | ||
| v7 | ||
| index.d.ts | ||
| package.json | ||
| reactstrap-tests.tsx | ||
| tsconfig.json | ||
| tslint.json | ||