Skip to content

Commit

Permalink
style(validator): fix import extensions warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Dec 3, 2024
1 parent 905f6a5 commit 49cc45d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export class ClassValidatorValidator implements Validator<ClassValidatorSchema>
{
name: 'class-transformer',
// @ts-expect-error - class-transformer doesn't export `defaultMetadataStorage` from the root module
import: import('class-transformer/cjs/storage'),
// eslint-disable-next-line import/extensions
import: import('class-transformer/cjs/storage.js'),
exports: ['defaultMetadataStorage'],
},
{
Expand Down Expand Up @@ -147,7 +148,8 @@ export class ClassValidatorValidator implements Validator<ClassValidatorSchema>
* @see https://github.com/typestack/class-transformer/issues/563#issuecomment-803262394
*/
// @ts-expect-error - class-transformer doesn't export `defaultMetadataStorage` from the root module
const { defaultMetadataStorage } = await import('class-transformer/cjs/storage');
// eslint-disable-next-line import/extensions
const { defaultMetadataStorage } = await import('class-transformer/cjs/storage.js');
const { getMetadataStorage } = await import('class-validator');
const { validationMetadatasToSchemas, targetConstructorToSchema } = await import('class-validator-jsonschema');

Expand Down

0 comments on commit 49cc45d

Please sign in to comment.