Closed seanlail closed 2 years ago
Thanks for finding this bug and submitting a PR to fix it!
The fix has been published in v0.0.3
. 🎉
To upgrade, install the latest version and re-generate your types:
npm install prismic-ts-codegen@latest
npx prismic-ts-codegen
Versions
Reproduction
Not sure what this error means
Full error log below:
Error log
```bash > prismic-ts-codegen ManipulationError: Manipulation error: A syntax error was inserted. types.d.ts:18:5 - error TS1131: Property or signature expected. 18 main-image: prismicT.ImageField
Steps to reproduce
My configuration file:
prismicCodegen.config.ts
```typescript import type { Config } from "prismic-ts-codegen"; const config: Config = { repositoryName: "my-repo", customTypesAPIToken: "my-token", locales: { ids: ["en-gb"], fetchFromRepository: true, }, models: { fetchFromRepository: true, }, output: "./utils/prismic/types.generated.ts", }; export default config; ```
What is expected?
Expect types to be generated
What is actually happening?
An error is thrown