@tsed/ajv 8.19.4 → 8.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { injectable, type TokenProvider } from "@tsed/di";
1
+ import { type TokenProvider } from "@tsed/di";
2
2
  import { AsyncFormatDefinition, FormatDefinition } from "ajv";
3
3
  export type FormatsOptions = Omit<FormatDefinition<any>, "validate" | "compare"> | Omit<AsyncFormatDefinition<any>, "validate" | "compare">;
4
4
  /**
@@ -8,4 +8,4 @@ export type FormatsOptions = Omit<FormatDefinition<any>, "validate" | "compare">
8
8
  * @param options
9
9
  * @ajv
10
10
  */
11
- export declare function formats(token: TokenProvider, name: string, options?: FormatsOptions): ReturnType<typeof injectable>;
11
+ export declare function formats<Token extends TokenProvider>(token: Token, name: string, options?: FormatsOptions): TsED.ProviderBuilder<Token>;
@@ -1,4 +1,4 @@
1
- import { injectable, type TokenProvider } from "@tsed/di";
1
+ import { type TokenProvider } from "@tsed/di";
2
2
  import { JsonSchema } from "@tsed/schema";
3
3
  import type { AnySchemaObject, KeywordDefinition } from "ajv";
4
4
  export type KeywordOptions = Partial<Omit<KeywordDefinition, "metaSchema">> & {
@@ -11,4 +11,4 @@ export type KeywordOptions = Partial<Omit<KeywordDefinition, "metaSchema">> & {
11
11
  * @decorator
12
12
  * @ajv
13
13
  */
14
- export declare function keyword(token: TokenProvider, options: KeywordOptions): ReturnType<typeof injectable>;
14
+ export declare function keyword<Token extends TokenProvider>(token: Token, options: KeywordOptions): TsED.ProviderBuilder<Token>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/ajv",
3
3
  "description": "AJV package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.19.4",
5
+ "version": "8.20.0",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -29,12 +29,12 @@
29
29
  "tslib": "2.7.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@tsed/barrels": "8.19.4",
33
- "@tsed/core": "8.19.4",
34
- "@tsed/di": "8.19.4",
35
- "@tsed/exceptions": "8.19.4",
36
- "@tsed/schema": "8.19.4",
37
- "@tsed/typescript": "8.19.4",
32
+ "@tsed/barrels": "8.20.0",
33
+ "@tsed/core": "8.20.0",
34
+ "@tsed/di": "8.20.0",
35
+ "@tsed/exceptions": "8.20.0",
36
+ "@tsed/schema": "8.20.0",
37
+ "@tsed/typescript": "8.20.0",
38
38
  "ajv": "^8.17.1",
39
39
  "eslint": "9.12.0",
40
40
  "typescript": "5.9.3",