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.

Rewrite demo in TypeScript?

See original GitHub issue

So that we can find issues in TypeScript definition.

We can upgrade demos’ format:

// components/*/demo/basic.tsx
demo
  .meta({...})
  .intro(`
  markdown syntax
  `)
  code(() => {

  })
  .css...

While building website, we transform TypeScript to ES2016, so that developers cannot tell any differences.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
afc163commented, May 17, 2017

we transform TypeScript to ES2016

If we can do that, we should write code in ts only and put a RadioButton of switching demo code between TypeScript and ES6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I rewrote our codebase to TypeScript in a week - Medium
How a developer rewrote an application from JavaScript to TypeScript and how you can do the same.
Read more >
Rewriting samlang in TypeScript | Developer Sam Blog
The samlang demo site has been merged into the samlang ... come from a complete overhaul of the codebase: rewriting samlang in TypeScript....
Read more >
The starting point for learning TypeScript
Find TypeScript starter projects: from Angular to React or Node.js and CLIs.
Read more >
How to check and rewrite all URLs inside a Typescript String ...
I am using Ionic 6 on Angular 13 and I have a json string that has the full text with html codes in...
Read more >
Converting JavaScript to TypeScript - TutorialsTeacher
Converting Existing JavaScript to TypeScript · Add tsconfig.json file to project · Integrate with a build tool · Change all .js files to...
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