fix(bindings/type): Update types of jsc.experimental (#7972)

**Related issue:**

 - Closes #7951
This commit is contained in:
Donny/강동윤 2023-09-19 11:57:52 +09:00 committed by GitHub
parent 2dac39304d
commit e40fccb9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 5 deletions

View File

@ -317,7 +317,7 @@ export interface TerserMangleOptions {
reserved?: string[];
}
export interface TerserManglePropertiesOptions {}
export interface TerserManglePropertiesOptions { }
/**
* Programmatic options.
@ -596,7 +596,20 @@ export interface JscConfig {
*/
experimental?: {
optimizeHygiene?: boolean;
keepImportAssertions?: boolean;
/**
* Preserve `with` in imports and exports.
*/
keepImportAttributes?: boolean;
/**
* Use `assert` instead of `with` for imports and exports.
* This option only works when `keepImportAttributes` is `true`.
*/
emitAssertForImportAttributes?: boolean;
/**
* Specify the location where SWC stores its intermediate cache files.
* Currently only transform plugin uses this. If not specified, SWC will
@ -1074,7 +1087,7 @@ export interface Output {
map?: string;
}
export interface MatchPattern {}
export interface MatchPattern { }
// -------------------------------
// ---------- Ast nodes ----------
@ -1306,7 +1319,7 @@ export type Expression =
| OptionalChainingExpression
| Invalid;
interface ExpressionBase extends Node, HasSpan {}
interface ExpressionBase extends Node, HasSpan { }
export interface Identifier extends ExpressionBase {
type: "Identifier";

View File

@ -1,6 +1,6 @@
{
"name": "@swc/types",
"version": "0.1.4",
"version": "0.1.5",
"description": "Typings for the swc project.",
"sideEffects": false,
"scripts": {