Skip to content

Commit

Permalink
Try #599, but no way in current TS
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Apr 24, 2023
1 parent 9e16c9b commit 001953c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/issues/599.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import typia from "typia";

type IElement =
| string
| {
component: string;
props: {
[P in keyof Record<any, any>]?: P extends "children"
? IElement[]
: IElement;
};
};

console.log(typia.createIs<IElement>().toString());

0 comments on commit 001953c

Please sign in to comment.