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.

Automatically generate and validate `tsconfig.json`

See original GitHub issue

When using TypeScript, we should automatically generate and validate tsconfig.json.

  • force isolatedModules: true
  • remove .d.ts files from template

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Dec 21, 2018

@ArcticZeroo please delete all JavaScript files in src/ (be sure you have them saved/backed up elsewhere), delete your tsconfig.json, and re-run npm start.

Next, cancel your dev server and update your tsconfig.json, only changing lib back to [ "es2018", "dom" ]. You can optionally set skipLibCheck to true.

Start your dev server again, did that work?

0reactions
Timercommented, Dec 23, 2018

There’s no documentation right now except “Adding TypeScript” – if you could propose something that’d be great, we’re open to hearing any feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Reference - Docs on every TSConfig option
These options make up the bulk of TypeScript's configuration and it covers ... Enabling the option allows importing JSON, and validating the types...
Read more >
TypeScript — Validation with AJV - Level Up Coding
Implementing AJV for validating user input with JSON schemas in TypeScript. Typing your the object as a response and performing complex ...
Read more >
Using with TypeScript - Ajv JSON schema validator
Ajv takes advantage of TypeScript type system to provide additional functionality ... type parameter can be used to make it type guard: //...
Read more >
Rules - bazelbuild/rules_nodejs - aspect build
Normally, you just give a single tsconfig.json file as the tsconfig attribute of a ts_library or ts_project rule. However, if your tsconfig.json uses...
Read more >
TypeScript | IntelliJ IDEA Documentation - JetBrains
To generate an import, select Add import statement: Auto import with quick-fix: no choices · If there are several sources to import a...
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