Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on noImplicitAny in the TS config #3

Closed
sindresorhus opened this issue Oct 4, 2017 · 2 comments
Closed

Turn on noImplicitAny in the TS config #3

sindresorhus opened this issue Oct 4, 2017 · 2 comments

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Oct 4, 2017

When sindresorhus/is#9 is done.

@sindresorhus
Copy link
Owner Author

We can do this now.

@sindresorhus
Copy link
Owner Author

Current blockers:

source/index.ts(34,37): error TS7017: Element implicitly has an 'any' type because type 'Predicate<any>' has no index signature.

34  for (const {validator, message} of predicate[validatorSymbol]) {
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~


source/lib/operators/not.ts(16,3): error TS7017: Element implicitly has an 'any' type because type 'Predicate<any>' has no index signature.

16  	predicate[validatorSymbol].push(validator);
    	~~~~~~~~~~~~~~~~~~~~~~~~~~


source/lib/predicates/array.ts(1,26): error TS7016: Could not find a declaration file for module 'lodash.isequal'. '/Users/sindresorhus/dev/todo/ow/node_modules/lodash.isequal/index.js' implicitly has an 'any' type.
  Try `npm install @types/lodash.isequal` if it exists or add a new declaration (.d.ts) file containing `declare module 'lodash.isequal';`

1 import * as isEqual from 'lodash.isequal';
                           ~~~~~~~~~~~~~~~~


source/lib/predicates/predicate.ts(24,24): error TS7017: Element implicitly has an 'any' type because type 'typeof is' has no index signature.

24  		validator: value => is[type](value)
    		                    ~~~~~~~~


source/lib/predicates/string.ts(1,27): error TS7016: Could not find a declaration file for module 'vali-date'. '/Users/sindresorhus/dev/todo/ow/node_modules/vali-date/index.js' implicitly has an 'any' type.
  Try `npm install @types/vali-date` if it exists or add a new declaration (.d.ts) file containing `declare module 'vali-date';`

1 import * as valiDate from 'vali-date';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant