prismic-client icon indicating copy to clipboard operation
prismic-client copied to clipboard

Provide types for the Integration Fields API

Open angeloashmore opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Developers writing custom Integration Field integrations do not have any Prismic-provided types to use. First-party provided types would make the development process easier.

Describe the solution you'd like

The Integration FIelds API is used to send data to Prismic to populate Integration Fields.

Details on the API are provided here: https://prismic.io/docs/core-concepts/integration-fields-setup

Similar to the types provided in api.ts, we could provide types for the Integration Fields API. This would be helpful when writing custom Integration Field integrations.

Describe alternatives you've considered

The types can be manually typed in a project. Not ideal.

Additional context

This request was prompted after prismicio/prismic-types#38 was discovered.

angeloashmore avatar Jun 08 '22 20:06 angeloashmore