We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a rgb data type like [[128, 128, 128], [0, 0, 0]], how to assert using typia.
[[128, 128, 128], [0, 0, 0]]
I get stuck in [number, number, number][].
[number, number, number][]
The text was updated successfully, but these errors were encountered:
Define like below.
import typia, { tags } from "typia"; type RgbValue = number & tags.Type<"uint32"> & tags.Maximum<256>; type RgbTuple = [RgbValue, RgbValue, RgbValue]; typia.createIs<Array<RgbTuple>>();
https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDANHA3g1BzAZzgF84AzKCEOAIiRVRoG4AoF+gUzgCU8AjAGqoANgFcuAXjgA7USD4cocAGS5CAOgAqyDgB4ao4NJgBmAEw0AfCrUF1AWVQAPUHN1mArADZLrTj35NUTBhSTgAbV5BEXFMKKExDjj+BPEAXVZ2ZDR1AGMoDlQYDgBJAl0AQSgoVERdKKCQjktLAAoASiYgA
Sorry, something went wrong.
@samchon Thank you very much.
samchon
No branches or pull requests
Question
I have a rgb data type like
[[128, 128, 128], [0, 0, 0]]
, how to assert using typia.I get stuck in
[number, number, number][]
.The text was updated successfully, but these errors were encountered: