Closed bogeychan closed 1 month ago
im new here, but can you tell me what different numeric and number?
@nursyah21 if you have this app:
import { Elysia, t } from "elysia";
new Elysia()
.post("/", ({ body }) => body, {
body: t.Object({
age: t.Number(),
}),
})
.listen(3000);
Only this works with Numeric
because it allows both string
and number
values:
{
"age": "42"
}
What version of Elysia is running?
1.1.16
What platform is your computer?
WSL Ubuntu
What steps can reproduce the bug?
What is the expected behavior?
all tests pass
What do you see instead?
all tests fail
Additional information
reported on discord
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes