Rewrite demo in TypeScript?
See original GitHub issueSo 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:
- Created 7 years ago
- Reactions:5
- Comments:10 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If we can do that, we should write code in ts only and put a RadioButton of switching demo code between TypeScript and ES6.
Suggest we do this earlier. Many tsd problem could be found during development.
https://github.com/ant-design/ant-design-mobile/commit/e4a496e0d681388f0966d87f2af9562036f9175a https://github.com/ant-design/ant-design-mobile/commit/5fd21d1539f19fe80fd415716d349d82c1a77408
…etc
cc @shepherdwind