DefinitelyTyped/types/reactstrap
Nathan Shively-Sanders c7a220ca57
Make reactstrap compile faster (#34809)
* 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
2019-04-17 16:08:14 -07:00
..
lib Make reactstrap compile faster (#34809) 2019-04-17 16:08:14 -07:00
v4
v7 Update paths in v7 tsconfig.json 2019-04-11 21:56:37 -07:00
index.d.ts Make reactstrap compile faster (#34809) 2019-04-17 16:08:14 -07:00
package.json
reactstrap-tests.tsx Merge pull request #1 from seansfkelley/reactstrap-toast 2019-04-11 21:36:37 -07:00
tsconfig.json
tslint.json