Skip to content

When using with includeCreateClientInterface: false and includeContentNamespace: false the build failed #76

@ionutt

Description

@ionutt

Versions

  • prismic-ts-codegen:
  • node:

Reproduction

We are using this configuration to gradually adopt the generated types. We have the json localy and we are not using the slice machine.

Steps to reproduce

  1. Generate the types using
  clientIntegration: {
      includeCreateClientInterface: false,
      includeContentNamespace: false,
  }
  1. Build the project

What is expected?

Build Success

What is actually happening?

Build failed with
PickContentRelationshipFieldData<
44 | Extract<TCustomType[number], { id: ID }>,

45 | Extract<prismic.Content.AllDocumentTypes, { type: ID }>["data"],
| ^
46 | TLang
47 | >

Extract<prismic.Content.AllDocumentTypes should be Extract<AllDocumentTypes since we don't have namespace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions