Skip to content

Commit

Permalink
fix(binding/types): Add type for decoratorVersion (#8468)
Browse files Browse the repository at this point in the history
**Description:**

Add type hint `"2021-12" | "2023-03` for `jsc.transform.decoratorVersion`.

**Related issue:**

 - Closes #8467
  • Loading branch information
SokuRitszZ authored Jan 2, 2024
1 parent 98920ca commit 79438e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79438e6

Please sign in to comment.