Skip to content

Commit

Permalink
feat: add swc transform decoratorVersion type (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang authored Jun 19, 2024
1 parent 480f93a commit 1903a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/swcTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ export interface TransformConfig {
* https://swc.rs/docs/configuring-swc.html#jsctransformdecoratormetadata
*/
decoratorMetadata?: boolean;
/**
* https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
*/
decoratorVersion?: "2021-12" | "2022-03";
treatConstEnumAsEnum?: boolean;
useDefineForClassFields?: boolean;
}
Expand Down

0 comments on commit 1903a6f

Please sign in to comment.