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

Model types missing in NPM package @pydantic/fastui #264

Open
slahn opened this issue Apr 8, 2024 · 1 comment
Open

Model types missing in NPM package @pydantic/fastui #264

slahn opened this issue Apr 8, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@slahn
Copy link

slahn commented Apr 8, 2024

The generated models.d.ts is present in the src directory of the NPM package, but not in the dist directory.

The result is that

import { models } from "@pydantic/fastui";

doesn't give type hints, and doesn't do type checking.

I've worked around this for now by doing
cp node_modules/@pydantic/fastui/src/models.d.ts node_modules/@pydantic/fastui/dist/
as part of my "dev" step.

@sydney-runkle sydney-runkle added this to the v2.6.0 milestone Apr 19, 2024
@sydney-runkle
Copy link
Member

Hmm. Looks like a bug. Let's see if we can fix this for 0.6

@sydney-runkle sydney-runkle added the bug Something isn't working label May 1, 2024
@sydney-runkle sydney-runkle modified the milestones: v0.6.0, v0.7.0 May 2, 2024
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