From a3f969ac412d066e9746d1339018081992662148 Mon Sep 17 00:00:00 2001 From: Tomer Shvadron Date: Wed, 17 Jul 2024 18:12:00 +0300 Subject: [PATCH] inlined variable --- src/ajv-options.ts | 5 ----- src/decorators.ts | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 src/ajv-options.ts diff --git a/src/ajv-options.ts b/src/ajv-options.ts deleted file mode 100644 index 69df064..0000000 --- a/src/ajv-options.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Options } from 'ajv'; - -export const ajvOptions = { - keywords: ['transform'], -} satisfies Options; diff --git a/src/decorators.ts b/src/decorators.ts index 8058d43..367f785 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -23,7 +23,6 @@ import type { import { capitalize, coerceType, isObj } from './util.js'; import AjvFormats from 'ajv-formats'; -import { ajvOptions } from './ajv-options.js'; const ajv = new Ajv({ coerceTypes: 'array', @@ -36,7 +35,7 @@ const ajv = new Ajv({ allErrors: false, // Our custom options: - ...ajvOptions, + keywords: ['transform'], }); AjvFormats.default(ajv);