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.

Suggestion: Check about tpescript is right or wrong in .d.ts files.

See original GitHub issue

I think we need a tool, like tsc. Sorry I don’t know how to do it…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
donmccurdycommented, Jun 1, 2020

Note that the tsc command is looking at the example and unit test code, and comparing that against the type definitions, to ensure that these uses of the three.js APIs match the uses that the type definitions would allow. This will catch many issues, but not all issues — it cannot guarantee that the type definitions match the actual JS source code completely.

Unfortunately, the TypeScript project has not provided any robust way to compare d.ts type definitions to JavaScript source code to detect mismatches more directly.

0reactions
Mugen87commented, Jun 1, 2020

Well, right now the command does not produce an output since everything is clean. If you for example remove an import in a d.ts file, a respective error should be reported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript: .d.ts file not recognized - Stack Overflow
There might be two issues here: 1.) You need to augment Window interface in global scope. Either remove all import / export keywords...
Read more >
Suggestion: resolve .d.ts at higher priority than .ts · Issue #47206
The problem is: When building in-place (i.e. not as --outDir dist ), typescript prefers the sources to the built results, which may cause...
Read more >
TSConfig Reference - Docs on every TSConfig option
A TSConfig file in a directory indicates that the directory is the root of a TypeScript or JavaScript project... Compiler Options. Top Level....
Read more >
Should I use *.d.ts for my types? : r/typescript - Reddit
Atm, i'm just creating a 'type' folder and declare and export my types in there. is that the correct way? or should I...
Read more >
Igor Minar on Twitter: "I totally missed that @typescript ...
changed their recommendation on `skipLibCheck` to `true`. This seems rather unfortunate for projects that contain custom *.d.ts files as these will no ...
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