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:
[ ] All tests pass in CI.
[x] There are sufficient tests for the new fix/feature.
[x] Grammar rules have not been renamed unless absolutely necessary.
[x] The conflicts section hasn't grown too much.
[ ] The parser size hasn't grown too much (check the value of STATE_COUNT in src/parser.c).
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
frompredefined_type
. I addednull
andundefined
toliteral_type
because those types are also values (is that the distinction?), whileunknown
is not.Checklist: