mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
fix(binding/types): Add type for decoratorVersion
(#8468)
**Description:** Add type hint `"2021-12" | "2023-03` for `jsc.transform.decoratorVersion`. **Related issue:** - Closes #8467
This commit is contained in:
parent
98920ca78d
commit
79438e6dc2
@ -764,6 +764,11 @@ export interface TransformConfig {
|
||||
*/
|
||||
decoratorMetadata?: boolean;
|
||||
|
||||
/**
|
||||
* https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
|
||||
*/
|
||||
decoratorVersion?: "2021-12" | "2022-03";
|
||||
|
||||
treatConstEnumAsEnum?: boolean;
|
||||
|
||||
useDefineForClassFields?: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user