question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type problems with TypeScript 2.6.1

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
winterbecommented, Nov 20, 2017

Sequency now uses noImplicitAny compiler setting. All predicates are now properly typed. I’ll publish a new release to NPM soon.

1reaction
winterbecommented, Nov 14, 2017

I’ll looking into this when I’m back home next week. Stay tuned… 🥁

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found