You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,24 @@
2
2
A web component to be able to use typescript in simple web pages.
3
3
4
4
After seeing the announcement for [--eraseableSyntaxOnly in typescript 5.8](https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/#the---erasablesyntaxonly-option) it gave me the idea that maybe node should not be the only one capable of such feats.
5
+
6
+
**Current features:**
7
+
-[x] remove `//` comments
8
+
-[x] remove some types after `:`
9
+
-[ ] remove type casts
10
+
-[ ] ... and everything else related to erasing syntax
11
+
-[ ] pass attributes to the underlying script tag
12
+
13
+
## Usage
14
+
Load the web component to your file and use `<script-ts>` just like you would the regular `<script>` tag.
0 commit comments