chanfana icon indicating copy to clipboard operation
chanfana copied to clipboard

DataOf not really working?

Open etodanik opened this issue 9 months ago • 3 comments

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: image

etodanik avatar May 06 '24 10:05 etodanik