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: Typescript only mode

See original GitHub issue

At @echo-health use Typescript in all of our projects and were wondering whether there would be any interest in adding a ‘mode’ to Typewriter so that it only outputs types that enforce the tracking schema instead of javascript code. We would be happy to take this on as a contribution

This would be preferable for us for the following reasons:

I’m intentionally not going to propose any naming or CLI flags here to first be able to talk about the idea in principle.

Should you not want this to be in-scope of this project, would you be ok with a separate community contributed package (e.g. Something like ts-typewriter or the like)?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
colinkingcommented, Feb 26, 2020

I think a flag of some kind makes the most sense!

I’d expect folks would either want to instrument typewriter using generated functions, or they’d want to use analytics.* methods directly, so it’s better to generate code that only offers a single way to instrument analytics. Making it opt-in would also make any changes backwards compatible, as you brought up 😃

0reactions
mattvagnicommented, Nov 1, 2021

No longer using Segment unfortunately and have not had a chance to update this in a while… closing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Reference - Docs on every TSConfig option
Currently, the only top-level property that is excluded from inheritance is references ... Ensures that your files are parsed in the ECMAScript strict...
Read more >
Skip typechecking; only emit (support --transpileOnly in tsc , re ...
Suggestion. Support a compilation mode where files are only transpiled without typechecking. This can greatly improve compilation speed. Similar ...
Read more >
TypeScript Programming with Visual Studio Code
Tip: You can disable snippets by setting editor.snippetSuggestions to "none" in your settings file. If you'd like to see snippets, you can specify...
Read more >
TypeScript | IntelliJ IDEA Documentation - JetBrains
Javascript and TypeScript - The plugin is available only in IntelliJ IDEA Ultimate, where it is enabled by default.
Read more >
How to disable TypeScript warnings in VSCode?
As per here, you can disable built-in extensions in VSCode now. In the Extensions tab on the left (Ctrl+Shift+X), search for @builtin + ......
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