Skip to content
New issue

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

properties from type inference #1492

Open
mshkpchv opened this issue Jan 23, 2024 · 1 comment
Open

properties from type inference #1492

mshkpchv opened this issue Jan 23, 2024 · 1 comment

Comments

@mshkpchv
Copy link

I am creating using 'zod' for validation and type creation.

const accSchema = z.object({
  companyName: z.string(),
  email: z.string().email(),
  demo: z.boolean(),
});

export type IAccountUpdatedPayload = z.infer<typeof accSchema >;

using ts-morph, I want to retrieve the properties for IAccountUpdatedPayload, but it does not return any.
I get the TypeAliasDeclaration, but I could not retrieve any valuable information from it

@SharkEzz
Copy link

It would be useful, does anyone know something about this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants