@oxc-project/types 0.67.0 → 0.68.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.67.0",
3
+ "version": "0.68.1",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -845,7 +845,7 @@ export interface StringLiteral extends Span {
845
845
 
846
846
  export interface BigIntLiteral extends Span {
847
847
  type: 'Literal';
848
- value: BigInt;
848
+ value: bigint;
849
849
  raw: string | null;
850
850
  bigint: string;
851
851
  }
@@ -1375,12 +1375,14 @@ export interface TSMappedType extends Span {
1375
1375
  type: 'TSMappedType';
1376
1376
  nameType: TSType | null;
1377
1377
  typeAnnotation: TSType | null;
1378
- optional: true | '+' | '-' | null;
1379
- readonly: true | '+' | '-' | null;
1378
+ optional: TSMappedTypeModifierOperator | null;
1379
+ readonly: TSMappedTypeModifierOperator | null;
1380
1380
  key: TSTypeParameter['name'];
1381
1381
  constraint: TSTypeParameter['constraint'];
1382
1382
  }
1383
1383
 
1384
+ export type TSMappedTypeModifierOperator = true | '+' | '-';
1385
+
1384
1386
  export interface TSTemplateLiteralType extends Span {
1385
1387
  type: 'TSTemplateLiteralType';
1386
1388
  quasis: Array<TemplateElement>;