@oxc-project/types 0.32.0 → 0.35.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.32.0",
3
+ "version": "0.35.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
@@ -18,8 +18,8 @@
18
18
  "funding": {
19
19
  "url": "https://github.com/sponsors/Boshen"
20
20
  },
21
- "types": "src/generated/types.d.ts",
21
+ "types": "types.d.ts",
22
22
  "files": [
23
- "src/generated/types.d.ts"
23
+ "types.d.ts"
24
24
  ]
25
25
  }
@@ -1,39 +1,6 @@
1
1
  // Auto-generated code, DO NOT EDIT DIRECTLY!
2
2
  // To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`
3
3
 
4
- export interface FormalParameterRest extends Span {
5
- type: 'RestElement';
6
- argument: BindingPatternKind;
7
- typeAnnotation: TSTypeAnnotation | null;
8
- optional: boolean;
9
- }
10
-
11
- export type RegExpFlags = {
12
- /** Global flag */
13
- G: 1;
14
- /** Ignore case flag */
15
- I: 2;
16
- /** Multiline flag */
17
- M: 4;
18
- /** DotAll flag */
19
- S: 8;
20
- /** Unicode flag */
21
- U: 16;
22
- /** Sticky flag */
23
- Y: 32;
24
- /** Indices flag */
25
- D: 64;
26
- /** Unicode sets flag */
27
- V: 128;
28
- };
29
-
30
- export type JSXElementName =
31
- | JSXIdentifier
32
- | JSXNamespacedName
33
- | JSXMemberExpression;
34
-
35
- export type JSXMemberExpressionObject = JSXIdentifier | JSXMemberExpression;
36
-
37
4
  export interface BooleanLiteral extends Span {
38
5
  type: 'BooleanLiteral';
39
6
  value: boolean;
@@ -1054,7 +1021,6 @@ export type ModuleExportName = IdentifierName | IdentifierReference | StringLite
1054
1021
 
1055
1022
  export interface TSThisParameter extends Span {
1056
1023
  type: 'TSThisParameter';
1057
- thisSpan: Span;
1058
1024
  typeAnnotation: TSTypeAnnotation | null;
1059
1025
  }
1060
1026
 
@@ -1427,6 +1393,7 @@ export interface TSIndexSignature extends Span {
1427
1393
  parameters: Array<TSIndexSignatureName>;
1428
1394
  typeAnnotation: TSTypeAnnotation;
1429
1395
  readonly: boolean;
1396
+ static: boolean;
1430
1397
  }
1431
1398
 
1432
1399
  export interface TSCallSignatureDeclaration extends Span {
@@ -1877,9 +1844,8 @@ export type Term =
1877
1844
  | IndexedReference
1878
1845
  | NamedReference;
1879
1846
 
1880
- export interface BoundaryAssertion {
1847
+ export interface BoundaryAssertion extends Span {
1881
1848
  type: 'BoundaryAssertion';
1882
- span: Span;
1883
1849
  kind: BoundaryAssertionKind;
1884
1850
  }
1885
1851
 
@@ -2008,3 +1974,36 @@ export interface NamedReference extends Span {
2008
1974
  type: 'NamedReference';
2009
1975
  name: string;
2010
1976
  }
1977
+
1978
+ export interface FormalParameterRest extends Span {
1979
+ type: 'RestElement';
1980
+ argument: BindingPatternKind;
1981
+ typeAnnotation: TSTypeAnnotation | null;
1982
+ optional: boolean;
1983
+ }
1984
+
1985
+ export type RegExpFlags = {
1986
+ /** Global flag */
1987
+ G: 1;
1988
+ /** Ignore case flag */
1989
+ I: 2;
1990
+ /** Multiline flag */
1991
+ M: 4;
1992
+ /** DotAll flag */
1993
+ S: 8;
1994
+ /** Unicode flag */
1995
+ U: 16;
1996
+ /** Sticky flag */
1997
+ Y: 32;
1998
+ /** Indices flag */
1999
+ D: 64;
2000
+ /** Unicode sets flag */
2001
+ V: 128;
2002
+ };
2003
+
2004
+ export type JSXElementName =
2005
+ | JSXIdentifier
2006
+ | JSXNamespacedName
2007
+ | JSXMemberExpression;
2008
+
2009
+ export type JSXMemberExpressionObject = JSXIdentifier | JSXMemberExpression;