Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwer committed Nov 8, 2024
1 parent 8662b2b commit 86bd4f9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ export class ClassValidatorValidator implements Validator<ClassType> {

async transformToJsonSchema(schema: ClassType): Promise<JsonSchema> {
try {
// @ts-ignore
/*
* TODO: replace with direct import, when metadataStorage is exported by default: https://github.com/typestack/class-transformer/issues/563#issuecomment-803262394
* @ts-ignore
*/
const { defaultMetadataStorage: defaultMetadataStorageCjs } = await import('class-transformer/cjs/storage');
// @ts-ignore
const { defaultMetadataStorage: defaultMetadataStorageEsm2015 } = await import(
Expand Down

0 comments on commit 86bd4f9

Please sign in to comment.