typia 7.0.0-dev.20241125-2 → 7.0.0-dev.20241126
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.
- package/README.md +3 -1
- package/package.json +4 -5
- package/src/tags/UniqueItems.ts +14 -14
package/README.md
CHANGED
|
@@ -23,8 +23,10 @@ export namespace json {
|
|
|
23
23
|
|
|
24
24
|
// LLM FUNCTION CALLING APPLICATION
|
|
25
25
|
export namespace llm {
|
|
26
|
-
// application from a class or interface type
|
|
26
|
+
// application schema from a class or interface type
|
|
27
27
|
export function application<App, Model>(): ILlmApplication<Model>;
|
|
28
|
+
// structured output
|
|
29
|
+
export function parameters<P, Moodel>(): ILlmSchema.IParameters<Model>;
|
|
28
30
|
export function schema<T, Model>(): ILlmSchema<Model>; // type schema
|
|
29
31
|
}
|
|
30
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typia",
|
|
3
|
-
"version": "7.0.0-dev.
|
|
3
|
+
"version": "7.0.0-dev.20241126",
|
|
4
4
|
"description": "Superfast runtime validators with only one line",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"test": "
|
|
17
|
+
"test": "ts-node deploy --tag test",
|
|
18
18
|
"test:bun": "bun run deploy/bun.ts",
|
|
19
19
|
"test:template": "npm run --tag test --template",
|
|
20
20
|
"-------------------------------------------------": "",
|
|
21
21
|
"build": "rimraf lib && tsc && rollup -c",
|
|
22
|
-
"dev": "
|
|
22
|
+
"dev": "rimraf lib && tsc --watch",
|
|
23
23
|
"dev:errors": "tsc --project tsconfig.errors.json --watch",
|
|
24
24
|
"eslint": "eslint ./**/*.ts",
|
|
25
25
|
"eslint:fix": "eslint ./**/*.ts --fix",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"package:latest": "ts-node deploy --tag latest",
|
|
29
29
|
"package:next": "ts-node deploy --tag next",
|
|
30
30
|
"package:patch": "ts-node deploy --tag patch",
|
|
31
|
-
"package:tgz": "ts-node deploy --tag tgz",
|
|
32
31
|
"package:deprecate": "npm deprecate typescript-json \"Renamed to typia\""
|
|
33
32
|
},
|
|
34
33
|
"repository": {
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
},
|
|
43
42
|
"homepage": "https://typia.io",
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"@samchon/openapi": "^2.0.0-dev.
|
|
44
|
+
"@samchon/openapi": "^2.0.0-dev.20241126",
|
|
46
45
|
"commander": "^10.0.0",
|
|
47
46
|
"comment-json": "^4.2.3",
|
|
48
47
|
"inquirer": "^8.2.5",
|
package/src/tags/UniqueItems.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TagBase } from "./TagBase";
|
|
2
|
-
|
|
3
|
-
export type UniqueItems<Value extends boolean = true> = TagBase<{
|
|
4
|
-
target: "array";
|
|
5
|
-
kind: "uniqueItems";
|
|
6
|
-
value: Value;
|
|
7
|
-
validate: Value extends true
|
|
8
|
-
? `$importInternal("isUniqueItems")($input)`
|
|
9
|
-
: undefined;
|
|
10
|
-
exclusive: true;
|
|
11
|
-
schema: {
|
|
12
|
-
uniqueItems: true;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
1
|
+
import { TagBase } from "./TagBase";
|
|
2
|
+
|
|
3
|
+
export type UniqueItems<Value extends boolean = true> = TagBase<{
|
|
4
|
+
target: "array";
|
|
5
|
+
kind: "uniqueItems";
|
|
6
|
+
value: Value;
|
|
7
|
+
validate: Value extends true
|
|
8
|
+
? `$importInternal("isUniqueItems")($input)`
|
|
9
|
+
: undefined;
|
|
10
|
+
exclusive: true;
|
|
11
|
+
schema: {
|
|
12
|
+
uniqueItems: true;
|
|
13
|
+
};
|
|
14
|
+
}>;
|