Skip to content

How to generate the types/generated/ctp.ts file?Β #3512

@jluterek

Description

@jluterek

Which part of the documentation does it affect and which topic does it refer to?

The typescript starter project leverages the file types/generated/ctp.ts for things like TFetchChannelsQuery. We are trying to follow this example for fetching other commercetools objects, but do not see a script for generating an updated version of this file.

We are looking for guidance on how to update this generated file to include the other query endpoints besides channel.

Describe what needs to be improved

I'd like to see the typescript page - https://docs.commercetools.com/merchant-center-customizations/development/adding-typescript - talk about generating the necessary types from the CTP graphql endpoint.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions