Skip to content

Commit

Permalink
Complete principle functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Sep 16, 2024
1 parent 69e6df4 commit 514f571
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.10.0.tgz"
"typia": "../typia-7.0.0-dev.20240916.tgz"
}
}
2 changes: 1 addition & 1 deletion debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"tstl": "^3.0.0",
"typia": "../typia-6.10.0-dev.20240910-2.tgz",
"typia": "../typia-7.0.0-dev.20240916.tgz",
"uuid": "^10.0.0"
}
}
5 changes: 0 additions & 5 deletions debug/src/llm.schema.recursive.ts

This file was deleted.

3 changes: 3 additions & 0 deletions debug/src/stringify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import typia from "typia";

console.log(typia.json.createIsStringify<string>().toString());
2 changes: 1 addition & 1 deletion errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"typescript": "^5.3.2"
},
"dependencies": {
"typia": "../typia-6.10.0.tgz"
"typia": "../typia-7.0.0-dev.20240916.tgz"
}
}
4 changes: 2 additions & 2 deletions packages/typescript-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-json",
"version": "6.10.0",
"version": "7.0.0-dev.20240916",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -63,7 +63,7 @@
},
"homepage": "https://typia.io",
"dependencies": {
"typia": "6.10.0"
"typia": "7.0.0-dev.20240916"
},
"peerDependencies": {
"typescript": ">=4.8.0 <5.7.0"
Expand Down
4 changes: 1 addition & 3 deletions src/programmers/json/JsonIsStringifyProgrammer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ export namespace JsonIsStringifyProgrammer {
props.modulo.getText(),
);
const result: FeatureProgrammer.IDecomposed = decompose({
context: props.context,
...props,
importer,
type: props.type,
name: props.name,
});
return FeatureProgrammer.writeDecomposed({
modulo: props.modulo,
Expand Down
6 changes: 2 additions & 4 deletions src/programmers/json/JsonStringifyProgrammer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export namespace JsonStringifyProgrammer {
WRITER
----------------------------------------------------------- */
export const decompose = (props: {
context: ITypiaContext;
validated: boolean;
context: ITypiaContext;
importer: FunctionImporter;
type: ts.Type;
name: string | undefined;
Expand Down Expand Up @@ -76,11 +76,9 @@ export namespace JsonStringifyProgrammer {
props.modulo.getText(),
);
const result: FeatureProgrammer.IDecomposed = decompose({
...props,
validated: false,
context: props.context,
importer,
type: props.type,
name: props.name,
});
return FeatureProgrammer.writeDecomposed({
modulo: props.modulo,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JsonStringifyProgrammer } from "../../../programmers/json/JsonStringifyProgrammer";
import { JsonIsStringifyProgrammer } from "../../../programmers/json/JsonIsStringifyProgrammer";

import { ITransformProps } from "../../ITransformProps";
import { GenericTransformer } from "../../internal/GenericTransformer";
Expand All @@ -8,6 +8,6 @@ export namespace JsonCreateIsStringifyTransformer {
GenericTransformer.factory({
...props,
method: "json.stringify",
write: JsonStringifyProgrammer.write,
write: JsonIsStringifyProgrammer.write,
});
}
2 changes: 1 addition & 1 deletion test-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"typescript": "^5.4.5"
},
"dependencies": {
"typia": "../typia-6.10.0.tgz"
"typia": "../typia-7.0.0-dev.20240916.tgz"
}
}
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.10.0.tgz"
"typia": "../typia-7.0.0-dev.20240916.tgz"
}
}

0 comments on commit 514f571

Please sign in to comment.