Skip to content

Commit 63d0efe

Browse files
author
Geoffroy Empain
committed
Export new enum to index to prevent import breaking when using the lib.
1 parent fef29e6 commit 63d0efe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,13 @@ export function deserialize<T>(cls: ClassType<T>, json: string, options?: ClassT
9090
export function deserializeArray<T>(cls: ClassType<T>, json: string, options?: ClassTransformOptions): T[] {
9191
return classTransformer.deserializeArray(cls, json, options);
9292
}
93+
94+
/**
95+
* Enum representing the different transformation types.
96+
*/
97+
98+
export enum TransformationType {
99+
PLAIN_TO_CLASS,
100+
CLASS_TO_PLAIN,
101+
CLASS_TO_CLASS
102+
}

0 commit comments

Comments
 (0)