Skip to content

Commit

Permalink
Fix #1179: tuple type in dynamic object case.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Jul 26, 2024
1 parent e655ff9 commit 1235aa2
Show file tree
Hide file tree
Showing 38 changed files with 81 additions and 405 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.5.4.tgz"
"typia": "../typia-6.5.5.tgz"
}
}
34 changes: 34 additions & 0 deletions debug/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const cp = require("child_process");
const fs = require("fs");
const supress = require("suppress-warnings");

const setup = () => {
const version = (() => {
cp.execSync("npm pack", { cwd: `${__dirname}/..` });
const pack = JSON.parse(
fs.readFileSync(`${__dirname}/../package.json`, "utf8"),
);
return pack.version;
})();
const mine = JSON.parse(fs.readFileSync(`${__dirname}/package.json`, "utf8"));

if (fs.existsSync(`${__dirname}/node_modules/typia`))
cp.execSync("npm uninstall typia", {
cwd: __dirname,
stdio: "ignore",
});
mine.dependencies.typia = `../typia-${version}.tgz`;
fs.writeFileSync(`${__dirname}/package.json`, JSON.stringify(mine, null, 2));
cp.execSync("npm install", { cwd: __dirname, stdio: "ignore" });
};

const execute = () => {
cp.execSync("npx rimraf bin && npx tsc", {
cwd: __dirname,
stdio: "inherit",
});
};

supress([() => true]);
setup();
execute();
22 changes: 0 additions & 22 deletions debug/features/array.ts

This file was deleted.

43 changes: 0 additions & 43 deletions debug/features/camel.ts

This file was deleted.

38 changes: 0 additions & 38 deletions debug/features/clone.ts

This file was deleted.

34 changes: 0 additions & 34 deletions debug/features/description.ts

This file was deleted.

43 changes: 0 additions & 43 deletions debug/features/discriminator.ts

This file was deleted.

11 changes: 0 additions & 11 deletions debug/features/dynamic.ts

This file was deleted.

13 changes: 0 additions & 13 deletions debug/features/functional.ts

This file was deleted.

6 changes: 0 additions & 6 deletions debug/features/intersection.ts

This file was deleted.

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

interface Foo {
paths?: {
[from: string]: [string];
};
}

console.log(typia.createAssert<Foo>().toString());
19 changes: 0 additions & 19 deletions debug/features/name.ts

This file was deleted.

26 changes: 0 additions & 26 deletions debug/features/openapi.ts

This file was deleted.

7 changes: 0 additions & 7 deletions debug/features/prisma.ts

This file was deleted.

6 changes: 0 additions & 6 deletions debug/features/protobuf.ts

This file was deleted.

8 changes: 0 additions & 8 deletions debug/features/random.ts

This file was deleted.

5 changes: 0 additions & 5 deletions debug/features/record.ts

This file was deleted.

6 changes: 0 additions & 6 deletions debug/features/recursive.ts

This file was deleted.

9 changes: 0 additions & 9 deletions debug/features/resolved.ts

This file was deleted.

11 changes: 0 additions & 11 deletions debug/features/schema.ts

This file was deleted.

21 changes: 0 additions & 21 deletions debug/features/set.ts

This file was deleted.

Loading

0 comments on commit 1235aa2

Please sign in to comment.