I have been running with ^1.0.5 successfully for a long time, but when trying to upgrade to 2.0.6 it fails at installation time.
> [email protected] postinstall ./node_modules/styled-components
> node ./scripts/postinstall.js || exit 0
Use styled-components at work? Consider supporting our development efforts at https://opencollective.com/styled-components
> [email protected] postinstall ./node_modules/react-toggle-component
> tsc -p tsconfig.json
src/components/Toggle/index.tsx(155,20): error TS2365: Operator '>' cannot be applied to types 'boolean' and 'string'.
src/components/Toggle/index.tsx(155,32): error TS2693: 'Props' only refers to a type, but is being used as a value here.
src/components/Toggle/index.tsx(160,12): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(161,13): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(177,16): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(178,17): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(179,27): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(181,24): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(189,26): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(192,13): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(193,15): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(196,13): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(197,15): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(199,29): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(204,17): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(211,18): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(212,19): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(213,26): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(214,29): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(217,24): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(224,29): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(231,31): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(240,22): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(241,17): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(244,31): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(251,31): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(265,29): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(272,31): error TS7006: Parameter 'p' implicitly has an 'any' type.
src/components/Toggle/index.tsx(282,33): error TS4025: Exported variable 'Toggle' has or is using private name 'Props'.
src/components/Toggle/index.tsx(316,6): error TS2604: JSX element type 'ToggleBase' does not have any construct or call signatures.
src/theme/index.tsx(15,51): error TS4025: Exported variable 'ReactToggleThemeProvider' has or is using private name 'Props'.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `tsc -p tsconfig.json`
npm ERR! Exit status 1