-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix tuple inference in the _Primitive type #600 * Processing for tuples and not #600 * For each element of the tuple, _Primivite not applied #600 * Define a Spread type to reduce type depth #600 * Just list each element #600 - There was a much simpler way. * fix : _Primitive applied #600
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import typia from "typia"; | ||
|
||
console.log( | ||
typia.random<readonly [1, 2, 3, 4, 5, 6]>(), | ||
typia.random<[1, 2, 3, 4, 5, 6]>(), | ||
typia.random<number[]>(), | ||
typia.random<number[][]>(), | ||
typia.random<boolean[][]>(), | ||
typia.random<[number, boolean]>(), | ||
typia.random<{ name: string }[]>(), | ||
typia.random<[false, true, true, 2, 3, 4, "five", "six", "seven"]>(), | ||
typia.random<[Boolean]>(), | ||
typia.random<[Boolean[]]>(), | ||
|
||
typia.createRandom<readonly [1, 2, 3, 4, 5, 6]>(), | ||
typia.createRandom<[1, 2, 3, 4, 5, 6]>(), | ||
typia.createRandom<number[]>(), | ||
typia.createRandom<number[][]>(), | ||
typia.createRandom<boolean[][]>(), | ||
typia.createRandom<[number, boolean]>(), | ||
typia.createRandom<{ name: string }[]>(), | ||
); |