Skip to content

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

@slahn

Description

@slahn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions