1
2
3
4
5
6
7
export const zodUnserializable = (async () => {
const z = await import("npm:zod");
await setTimeout(() => {}, 100);
const x = z.object({ test: z.string() }); // type .object after z
return x;
})();
// Forked from @tmcw.zodExample
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023