Skip to content

Commit 07f4633

Browse files
committed
fix: allow const as a primary type
1 parent 80a8a7d commit 07f4633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/define-grammar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ module.exports = function defineGrammar(dialect) {
709709
$.conditional_type,
710710
$.template_literal_type,
711711
$.intersection_type,
712-
$.union_type
712+
$.union_type,
713+
'const',
713714
),
714715

715716
template_type: $ => seq('${', choice($._primary_type, $.infer_type), '}'),

0 commit comments

Comments
 (0)