diff --git a/debug/features/intersection.ts b/debug/features/intersection.ts index 4fe57c5f00..067c27f4fd 100644 --- a/debug/features/intersection.ts +++ b/debug/features/intersection.ts @@ -1,15 +1,6 @@ import typia from "typia"; -console.log( - typia.createIs<2 & number>().toString(), - typia.createIs<3 & 4 & number>().toString(), - typia - .createIs< - [ - { - id: never; - }, - ] - >() - .toString(), -); +type Art = `${string}art${string}`; +type Bar = `${string}bar${string}`; + +console.log(typia.createIs().toString()); diff --git a/errors/src/nonsensible/error_nonsensible_intersection.ts b/errors/src/nonsensible/error_nonsensible_intersection.ts new file mode 100644 index 0000000000..a5ed193825 --- /dev/null +++ b/errors/src/nonsensible/error_nonsensible_intersection.ts @@ -0,0 +1,6 @@ +import typia from "typia"; + +type Art = `${string}art${string}`; +type Bar = `${string}bar${string}`; + +typia.createIs();