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:
Andrew Leung 2024-01-02 10:37:00 +08:00 committed by GitHub
parent 98920ca78d
commit 79438e6dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;