Skip to content

Commit

Permalink
Exact comment tracing on interface type.
Browse files Browse the repository at this point in the history
TypeScript v5.2 supports a new function `getJSDocCommentsAndTags()` that listing up every JsDoc comments and tags at once.

Therefore, evolved `typia` to use `Symbol.getDocumentationComment()` in legavy TypeScript version, and adapted the `getJSDocCommentsAndTags()` function in the latest version.
  • Loading branch information
samchon committed Jul 29, 2023
1 parent d093bd3 commit 1db6cf1
Show file tree
Hide file tree
Showing 620 changed files with 1,531 additions and 1,623 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ClassValidatorArrayRecursive } from "../../../structures/class-validator/ClassValidatorArrayRecursive";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorArrayRecursive);
createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorArrayRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassValidatorArrayRecursiveUnionExplicit } from "../../../structures/class-validator/ClassValidatorArrayRecursiveUnionExplicit";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorArrayRecursiveUnionExplicit);
createAssertErrorClassValidatorBenchmarkProgram(
ClassValidatorArrayRecursiveUnionExplicit,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassValidatorArrayRecursiveUnionImplicit } from "../../../structures/class-validator/ClassValidatorArrayRecursiveUnionImplicit";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorArrayRecursiveUnionImplicit);
createAssertErrorClassValidatorBenchmarkProgram(
ClassValidatorArrayRecursiveUnionImplicit,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassValidatorObjectHierarchical } from "../../../structures/class-validator/ClassValidatorObjectHierarchical";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectHierarchical);
createAssertErrorClassValidatorBenchmarkProgram(
ClassValidatorObjectHierarchical,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ClassValidatorObjectRecursive } from "../../../structures/class-validator/ClassValidatorObjectRecursive";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectRecursive);
createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ClassValidatorObjectSimple } from "../../../structures/class-validator/ClassValidatorObjectSimple";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectSimple);
createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectSimple);
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassValidatorObjectUnionExplicit } from "../../../structures/class-validator/ClassValidatorObjectUnionExplicit";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectUnionExplicit);
createAssertErrorClassValidatorBenchmarkProgram(
ClassValidatorObjectUnionExplicit,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassValidatorObjectUnionImplicit } from "../../../structures/class-validator/ClassValidatorObjectUnionImplicit";

import { createAssertErrorClassValidatorBenchmarkProgram } from "./createAssertErrorClassValidatorBenchmarkProgram";

createAssertErrorClassValidatorBenchmarkProgram(ClassValidatorObjectUnionImplicit);
createAssertErrorClassValidatorBenchmarkProgram(
ClassValidatorObjectUnionImplicit,
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsArrayRecursive } from "../../../structures/io-ts/IoTsArrayRecursive";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursive);
createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsArrayRecursiveUnionExplicit } from "../../../structures/io-ts/IoTsArrayRecursiveUnionExplicit";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursiveUnionExplicit);
createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursiveUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsArrayRecursiveUnionImplicit } from "../../../structures/io-ts/IoTsArrayRecursiveUnionImplicit";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursiveUnionImplicit);
createAssertErrorIoTsBenchmarkProgram(IoTsArrayRecursiveUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsObjectHierarchical } from "../../../structures/io-ts/IoTsObjectHierarchical";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsObjectHierarchical);
createAssertErrorIoTsBenchmarkProgram(IoTsObjectHierarchical);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsObjectRecursive } from "../../../structures/io-ts/IoTsObjectRecursive";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsObjectRecursive);
createAssertErrorIoTsBenchmarkProgram(IoTsObjectRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsObjectSimple } from "../../../structures/io-ts/IoTsObjectSimple";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsObjectSimple);
createAssertErrorIoTsBenchmarkProgram(IoTsObjectSimple);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsObjectUnionExplicit } from "../../../structures/io-ts/IoTsObjectUnionExplicit";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsObjectUnionExplicit);
createAssertErrorIoTsBenchmarkProgram(IoTsObjectUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsObjectUnionImplicit } from "../../../structures/io-ts/IoTsObjectUnionImplicit";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsObjectUnionImplicit);
createAssertErrorIoTsBenchmarkProgram(IoTsObjectUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IoTsUltimateUnion } from "../../../structures/io-ts/IoTsUltimateUnion";

import { createAssertErrorIoTsBenchmarkProgram } from "./createAssertErrorIoTsBenchmarkProgram";

createAssertErrorIoTsBenchmarkProgram(IoTsUltimateUnion);
createAssertErrorIoTsBenchmarkProgram(IoTsUltimateUnion);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxArrayRecursive } from "../../../structures/typebox/TypeboxArrayRecursive";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursive);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxArrayRecursiveUnionExplicit } from "../../../structures/typebox/TypeboxArrayRecursiveUnionExplicit";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursiveUnionExplicit);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursiveUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxArrayRecursiveUnionImplicit } from "../../../structures/typebox/TypeboxArrayRecursiveUnionImplicit";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursiveUnionImplicit);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxArrayRecursiveUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxObjectHierarchical } from "../../../structures/typebox/TypeboxObjectHierarchical";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectHierarchical);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectHierarchical);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxObjectRecursive } from "../../../structures/typebox/TypeboxObjectRecursive";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectRecursive);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxObjectSimple } from "../../../structures/typebox/TypeboxObjectSimple";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectSimple);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectSimple);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxObjectUnionExplicit } from "../../../structures/typebox/TypeboxObjectUnionExplicit";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectUnionExplicit);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxObjectUnionImplicit } from "../../../structures/typebox/TypeboxObjectUnionImplicit";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectUnionImplicit);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxObjectUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __TypeboxUltimateUnion } from "../../../structures/typebox/TypeboxUltimateUnion";

import { createAssertErrorTypeboxBenchmarkProgram } from "./createAssertErrorTypeboxBenchmarkProgram";

createAssertErrorTypeboxBenchmarkProgram(__TypeboxUltimateUnion);
createAssertErrorTypeboxBenchmarkProgram(__TypeboxUltimateUnion);
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ArrayRecursive } from "../../../../test/structures/ArrayRecursive";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ArrayRecursive[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ArrayRecursive[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { ArrayRecursiveUnionExplicit } from "../../../../test/structures/ArrayRe
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ArrayRecursiveUnionExplicit[]>()
);
typia.createAssert<ArrayRecursiveUnionExplicit[]>(),
);
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { ArrayRecursiveUnionImplicit } from "../../../../test/structures/ArrayRe
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ArrayRecursiveUnionImplicit[]>()
);
typia.createAssert<ArrayRecursiveUnionImplicit[]>(),
);
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ObjectHierarchical } from "../../../../test/structures/ObjectHierarchical";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ObjectHierarchical[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ObjectHierarchical[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ObjectRecursive } from "../../../../test/structures/ObjectRecursive";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ObjectRecursive[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ObjectRecursive[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ObjectSimple } from "../../../../test/structures/ObjectSimple";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ObjectSimple[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ObjectSimple[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ObjectUnionExplicit } from "../../../../test/structures/ObjectUnionExplicit";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ObjectUnionExplicit[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ObjectUnionExplicit[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ObjectUnionImplicit } from "../../../../test/structures/ObjectUnionImplicit";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<ObjectUnionImplicit[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<ObjectUnionImplicit[]>());
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { UltimateUnion } from "../../../../test/structures/UltimateUnion";
import { createAssertErrorBenchmarkProgram } from "../createAssertErrorBenchmarkProgram";

createAssertErrorBenchmarkProgram(
typia.createAssert<UltimateUnion[]>()
);
createAssertErrorBenchmarkProgram(typia.createAssert<UltimateUnion[]>());
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodArrayRecursive } from "../../../structures/zod/ZodArrayRecursive";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodArrayRecursive);
createAssertErrorZodBenchmarkProgram(ZodArrayRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodArrayRecursiveUnionExplicit } from "../../../structures/zod/ZodArrayRecursiveUnionExplicit";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodArrayRecursiveUnionExplicit);
createAssertErrorZodBenchmarkProgram(ZodArrayRecursiveUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodArrayRecursiveUnionImplicit } from "../../../structures/zod/ZodArrayRecursiveUnionImplicit";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodArrayRecursiveUnionImplicit);
createAssertErrorZodBenchmarkProgram(ZodArrayRecursiveUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodObjectHierarchical } from "../../../structures/zod/ZodObjectHierarchical";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodObjectHierarchical);
createAssertErrorZodBenchmarkProgram(ZodObjectHierarchical);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodObjectRecursive } from "../../../structures/zod/ZodObjectRecursive";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodObjectRecursive);
createAssertErrorZodBenchmarkProgram(ZodObjectRecursive);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodObjectSimple } from "../../../structures/zod/ZodObjectSimple";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodObjectSimple);
createAssertErrorZodBenchmarkProgram(ZodObjectSimple);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodObjectUnionExplicit } from "../../../structures/zod/ZodObjectUnionExplicit";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodObjectUnionExplicit);
createAssertErrorZodBenchmarkProgram(ZodObjectUnionExplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodObjectUnionImplicit } from "../../../structures/zod/ZodObjectUnionImplicit";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodObjectUnionImplicit);
createAssertErrorZodBenchmarkProgram(ZodObjectUnionImplicit);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ZodUltimateUnion } from "../../../structures/zod/ZodUltimateUnion";

import { createAssertErrorZodBenchmarkProgram } from "./createAssertErrorZodBenchmarkProgram";

createAssertErrorZodBenchmarkProgram(ZodUltimateUnion);
createAssertErrorZodBenchmarkProgram(ZodUltimateUnion);
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import typia from "typia";
import { ArrayRecursive } from "../../../../test/structures/ArrayRecursive";
import { createAssertAjvBenchmarkProgram } from "./createAssertAjvBenchmarkProgram";

createAssertAjvBenchmarkProgram(
typia.application<[ArrayRecursive], "ajv">(),
);
createAssertAjvBenchmarkProgram(typia.application<[ArrayRecursive], "ajv">());
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { createAssertAjvBenchmarkProgram } from "./createAssertAjvBenchmarkProgr

createAssertAjvBenchmarkProgram(
typia.application<[ArrayRecursiveUnionExplicit], "ajv">(),
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { createAssertAjvBenchmarkProgram } from "./createAssertAjvBenchmarkProgr

createAssertAjvBenchmarkProgram(
typia.application<[ArrayRecursiveUnionImplicit], "ajv">(),
);
);
Loading

0 comments on commit 1db6cf1

Please sign in to comment.