tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
341 stars 104 forks source link

Add more predefined and literal types #184

Closed resolritter closed 2 years ago

resolritter commented 2 years ago

closes https://github.com/tree-sitter/tree-sitter-typescript/issues/164

This is on top of #183 for my own convenience

I could not clearly distinguish literal_type from predefined_type. I added null and undefined to literal_type because those types are also values (is that the distinction?), while unknown is not.

Checklist:

danielnehrig commented 2 years ago

lgtm

maxbrunsfeld commented 2 years ago

Thanks!