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.

Declare more TS typings

See original GitHub issue

The 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 any typings unless absolutely necessary
  • no implicit any typings unless necessary
  • turn on strict null checking

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
jasongroutcommented, Oct 4, 2017

Yes, it’s weird that somehow these problems are just now being noticed.

1reaction
vidartfcommented, Oct 4, 2017

It seems a lot of this is being fixed in #1738.

Read more comments on GitHub >

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

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