FastUI icon indicating copy to clipboard operation
FastUI copied to clipboard

Model types missing in NPM package @pydantic/fastui

Open slahn opened this issue 1 year ago • 1 comments

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.

slahn avatar Apr 08 '24 19:04 slahn

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

sydney-runkle avatar May 01 '24 21:05 sydney-runkle