Skip to content

Commit 39032dc

Browse files
authored
fix(@swc/types): Remove nativeClassProperties (#10592)
1 parent 3b03867 commit 39032dc

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

packages/types/index.ts

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export interface TerserMangleOptions {
352352
reserved?: string[];
353353
}
354354

355-
export interface TerserManglePropertiesOptions {}
355+
export interface TerserManglePropertiesOptions { }
356356

357357
/**
358358
* Programmatic options.
@@ -879,10 +879,6 @@ export interface TransformConfig {
879879
*/
880880
verbatimModuleSyntax?: boolean;
881881

882-
/**
883-
* Native class properties support
884-
*/
885-
nativeClassProperties?: boolean;
886882
}
887883

888884
export interface ReactConfig {
@@ -925,27 +921,27 @@ export interface ReactConfig {
925921
* Enable fast refresh feature for React app
926922
*/
927923
refresh?:
928-
| boolean
929-
| {
930-
/**
931-
* Identifier for the `react-refresh` register function.
932-
*
933-
* Defaults to `$RefreshReg$`
934-
*/
935-
refreshReg?: string;
936-
/**
937-
* Identifier for the `react-refresh` signature function.
938-
*
939-
* Defaults to `$RefreshSig$`
940-
*/
941-
refreshSig?: string;
942-
/**
943-
* Flag to emit full signatures.
944-
*
945-
* Defaults to `false`
946-
*/
947-
emitFullSignatures?: boolean;
948-
};
924+
| boolean
925+
| {
926+
/**
927+
* Identifier for the `react-refresh` register function.
928+
*
929+
* Defaults to `$RefreshReg$`
930+
*/
931+
refreshReg?: string;
932+
/**
933+
* Identifier for the `react-refresh` signature function.
934+
*
935+
* Defaults to `$RefreshSig$`
936+
*/
937+
refreshSig?: string;
938+
/**
939+
* Flag to emit full signatures.
940+
*
941+
* Defaults to `false`
942+
*/
943+
emitFullSignatures?: boolean;
944+
};
949945

950946
/**
951947
* jsx runtime
@@ -1232,7 +1228,7 @@ export interface Output {
12321228
map?: string;
12331229
}
12341230

1235-
export interface MatchPattern {}
1231+
export interface MatchPattern { }
12361232

12371233
// -------------------------------
12381234
// ---------- Ast nodes ----------
@@ -1464,7 +1460,7 @@ export type Expression =
14641460
| OptionalChainingExpression
14651461
| Invalid;
14661462

1467-
interface ExpressionBase extends Node, HasSpan {}
1463+
interface ExpressionBase extends Node, HasSpan { }
14681464

14691465
export interface Identifier extends ExpressionBase {
14701466
type: "Identifier";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy