mirror of
https://github.com/swc-project/swc.git
synced 2024-10-26 17:13:09 +03:00
fix(bindings/type): Update types of jsc.experimental
(#7972)
**Related issue:** - Closes #7951
This commit is contained in:
parent
2dac39304d
commit
e40fccb9ce
@ -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";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/types",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"description": "Typings for the swc project.",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user