@willbooster/tree-sitter-typescript 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -288,6 +288,7 @@ module.exports = function defineGrammar(dialect) {
288
288
  choice(
289
289
  previous,
290
290
  seq('export', 'type', $.export_clause, optional($._from_clause), $._semicolon),
291
+ seq('export', 'type', choice('*', $.namespace_export), $._from_clause, $._semicolon),
291
292
  seq('export', '=', $.expression, $._semicolon),
292
293
  seq('export', 'as', 'namespace', $.identifier, $._semicolon)
293
294
  ),
@@ -700,7 +701,14 @@ module.exports = function defineGrammar(dialect) {
700
701
  prec(
701
702
  'call',
702
703
  seq(
703
- field('name', choice($._type_identifier, $.nested_type_identifier)),
704
+ field(
705
+ 'name',
706
+ choice(
707
+ $._type_identifier,
708
+ $.nested_type_identifier,
709
+ alias($._type_query_member_expression_in_type_annotation, $.member_expression)
710
+ )
711
+ ),
704
712
  field('type_arguments', $.type_arguments)
705
713
  )
706
714
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-typescript",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript and TSX grammars for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -77,7 +77,7 @@
77
77
  }
78
78
  ],
79
79
  "metadata": {
80
- "version": "1.0.0",
80
+ "version": "1.1.1",
81
81
  "license": "MIT",
82
82
  "description": "TypeScript and TSX grammars for tree-sitter",
83
83
  "authors": [
@@ -2695,6 +2695,10 @@
2695
2695
  "multiple": false,
2696
2696
  "required": true,
2697
2697
  "types": [
2698
+ {
2699
+ "type": "member_expression",
2700
+ "named": true
2701
+ },
2698
2702
  {
2699
2703
  "type": "nested_type_identifier",
2700
2704
  "named": true
@@ -2691,6 +2691,10 @@
2691
2691
  "multiple": false,
2692
2692
  "required": true,
2693
2693
  "types": [
2694
+ {
2695
+ "type": "member_expression",
2696
+ "named": true
2697
+ },
2694
2698
  {
2695
2699
  "type": "nested_type_identifier",
2696
2700
  "named": true