Definition file fails to coompile with strict settings.
MicahZoltu opened this issue · comments
Micah Zoltu commented
npm install apprun
- Set
"noImplicitAny": true
compiler flag. - Add
import app from 'apprun'
to a TypeScript file. - Try to compile the project.
- --> Notice that you get the following errors:
Error /path/to/project/node_modules/apprun/apprun.d.ts 10, 351: Parameter 'props' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 16, 221: Member 'history' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 17, 161: Parameter 'state' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 22, 181: Member 'history' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 27, 421: Parameter 'props' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 27, 501: Rest parameter 'children' implicitly has an 'any[]' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 29, 131: Parameter 'props' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 29, 201: Rest parameter 'children' implicitly has an 'any[]' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 37, 591: Member 'history' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 38, 591: Member 'history' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 41, 251: Parameter 'props' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 42, 261: Parameter 'children' implicitly has an 'any' type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 50, 181: 'on', which lacks return-type annotation, implicitly has an 'any' return type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 52, 181: 'update', which lacks return-type annotation, implicitly has an 'any' return type.
Error /path/to/project/node_modules/apprun/apprun.d.ts 53, 181: 'event', which lacks return-type annotation, implicitly has an 'any' return type.