From 4807e838f0f820869adfccd165ee06a51e8da90e Mon Sep 17 00:00:00 2001 From: David Vo Date: Sat, 8 Jul 2023 22:05:10 +1000 Subject: [PATCH] typescript: Add type operation commands --- lang/typescript/typescript.talon | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lang/typescript/typescript.talon b/lang/typescript/typescript.talon index 80e949282a..c99fc11310 100644 --- a/lang/typescript/typescript.talon +++ b/lang/typescript/typescript.talon @@ -1,3 +1,10 @@ tag: user.typescript - tag(): user.javascript + +type union []: " | {code_type or ''}" +type intersect []: " & {code_type or ''}" + +state type: user.insert_between("type ", " = ") + +as const: " as const"