Skip to content

Commit

Permalink
typescript: Add type operation commands
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek authored Jul 8, 2023
1 parent 38cb583 commit 4807e83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lang/typescript/typescript.talon
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
tag: user.typescript
-
tag(): user.javascript

type union [<user.code_type>]: " | {code_type or ''}"
type intersect [<user.code_type>]: " & {code_type or ''}"

state type: user.insert_between("type ", " = ")

as const: " as const"

0 comments on commit 4807e83

Please sign in to comment.