Skip to content

Commit 79438e6

Browse files
authoredJan 2, 2024
fix(binding/types): Add type for decoratorVersion (#8468)
**Description:** Add type hint `"2021-12" | "2023-03` for `jsc.transform.decoratorVersion`. **Related issue:** - Closes #8467
1 parent 98920ca commit 79438e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎packages/types/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@ export interface TransformConfig {
764764
*/
765765
decoratorMetadata?: boolean;
766766

767+
/**
768+
* https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
769+
*/
770+
decoratorVersion?: "2021-12" | "2022-03";
771+
767772
treatConstEnumAsEnum?: boolean;
768773

769774
useDefineForClassFields?: boolean;

0 commit comments

Comments
 (0)
Please sign in to comment.