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

[BUG] Does not work with zod types #34

Open
valerii15298 opened this issue Jun 20, 2023 · 0 comments
Open

[BUG] Does not work with zod types #34

valerii15298 opened this issue Jun 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@valerii15298
Copy link

valerii15298 commented Jun 20, 2023

Describe the bug
I am trying to import type defs for zod package. But they do not seem to work properly.

To Reproduce
StackBlitz link: https://stackblitz.com/edit/vite-react-ts-bntgbg?file=src%2FApp.tsx

For some reason type of TObj is inferred as

type TObj = {
    [x: string]: any;
}

while it should be:

type TObj = {
    a: number;
}

Environment (please complete the following information):

  • monaco-editor-auto-typings Version: latest(0.4.4)
@valerii15298 valerii15298 added the bug Something isn't working label Jun 20, 2023
@valerii15298 valerii15298 changed the title [BUG] Cannot import types from subdirs [BUG] Does not work with zod types Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants