chanfana
chanfana copied to clipboard
DataOf not really working?
I'm trying to use DataOf on a project, and TypeScript keeps resolving everything to any
.
For example, I have:
requestBody: z.object({
address: z.string(),
chainId: z.string(),
token: z.string(),
}),
And then I do:
data: DataOf<typeof CreateSignInDataPost.schema>
But the resolved types are always: