Declare more TS typings
See original GitHub issueThe current typescript code has a lot of anys (both explicit and implicit). These should be more explicitly typed, at least on the exported functions. A more explicit typing, maybe together with strict null checks might also reveal some bugs.
- no explicit
anytypings unless absolutely necessary - no implicit
anytypings unless necessary - turn on strict null checking
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (18 by maintainers)
Top Results From Across the Web
Documentation - Declaration Reference - TypeScript
How to create a d.ts file for a module. ... Use declare namespace to describe types or values accessed by dotted notation. ts....
Read more >Declaring multiple TypeScript variables with the same type
I'm coding a large TypeScript class and I've set noImplicitAny to true . Is there any way to declare multiple variables of the...
Read more >A quick introduction to “Type Declaration” files and adding ...
In this lesson, we are going to take a closer look at type declaration files which are one of the key ingredients of...
Read more >How to add custom types into the TypeScript project - drag13.io
Tutorial how to add custom types (typings) for the third-party code into the TypeScript project or how to solve "could not find a...
Read more >The repository for high quality TypeScript type definitions.
See more in the handbook. ... declare module "libname" { // Types inside here export function ... index.d.ts, This contains the typings for...
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 Free
Top 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

Yes, it’s weird that somehow these problems are just now being noticed.
It seems a lot of this is being fixed in #1738.