Type problems with TypeScript 2.6.1
See original GitHub issueI’m using sequency 0.17.0 and TypeScript 2.6.1 with "noImplicitAny": true
in tsconfig.json, and the ts definition files has errors. This type of definition is not correct:
any<T>(this: Sequence<T>, predicate?: (T) => boolean): boolean;
Correct should be:
any<T>(this: Sequence<T>, predicate?: (param: T) => boolean): boolean;
Errors:
ERROR in [at-loader] ./node_modules/sequency/lib/all.d.ts:9:43
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/any.d.ts:9:44
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/count.d.ts:10:46
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/filter.d.ts:9:46
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/first.d.ts:10:46
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/firstOrNull.d.ts:9:52
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/firstOrNull.d.ts:16:45
TS7006: Parameter 'T' implicitly has an 'any' type.
ERROR in [at-loader] ./node_modules/sequency/lib/forEach.d.ts:8:44
TS7006: Parameter 'T' implicitly has an 'any' type.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
typescript 2.6.1 extension - Visual Studio Feedback
Installed latest TS extension for VS2017 and the MSI executes without ever prompting anything (i can see it running in the background).. and...
Read more >typescript - npm
TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account....
Read more >Announcing TypeScript 2.6 - Microsoft Developer Blogs
It means completely unrelated types will get caught, but it means that certain unsavory issues can fall through the cracks when there is...
Read more >Documentation - TypeScript 3.9
If you've been stuck on older versions of TypeScript due to issues around ... two string s so that other TypeScript users can...
Read more >node_modules/@types/node/index.d.ts(20,1): error TS1084
I have faced the same problem and found the solution is to update typescript to the latest version from the current version.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sequency now uses
noImplicitAny
compiler setting. All predicates are now properly typed. I’ll publish a new release to NPM soon.I’ll looking into this when I’m back home next week. Stay tuned… 🥁