prismicio / prismic-ts-codegen

A Prismic model-to-TypeScript-type generator.
Apache License 2.0
18 stars 6 forks source link

fix: replace deprecated `IntegrationFields` type with `IntegrationField` type #48

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR fixes prismic-ts-codegen by using the correct non-deprecated IntegrationField type.

IntegrationFields (with an "s") was deprecated in @prismicio/client v7. Although IntegrationFields is still a valid API, TypeScript will warn about its deprecation status, and the type will eventually be removed from @prismicio/cilent.

Checklist:

🐰

codecov-commenter commented 1 year ago

Codecov Report

Merging #48 (a02ca39) into main (68c6fb9) will not change coverage. The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   98.73%   98.73%           
=======================================
  Files          23       23           
  Lines        1655     1655           
  Branches      142      142           
=======================================
  Hits         1634     1634           
  Misses         21       21           
Impacted Files Coverage Δ
src/lib/addInterfacePropertiesForFields.ts 98.64% <100.00%> (ø)