Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit dcb3a65

Browse files
author
Bastiaan Marinus van de Weerd
committed
Fix template literal types in TypeScript.
1 parent d0b5947 commit dcb3a65

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5769,7 +5769,7 @@ if none @is_acc {
57695769

57705770
; (template_literal_type)
57715771

5772-
(template_literal_type (_)@inner)@type {
5772+
(template_literal_type (template_type)@inner)@type {
57735773
; propagate lexical scope
57745774
edge @inner.lexical_scope -> @type.lexical_scope
57755775

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type World = "world";
2+
type Greeting = `Hello, ${World}!`;
3+
// ^TODO defined: 1

0 commit comments

Comments
 (0)