prismicio / prismic-ts-codegen

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

fix: restore Slice Zone Slices union in `Content` #57

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR restores a type export in the Content namespace representing Slice Zone choices. The type was inadvertantly removed in v0.1.12.

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #57 (d4806c2) into main (3793c9f) will increase coverage by 0.04%. Report is 1 commits behind head on main. 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      #57      +/-   ##
==========================================
+ Coverage   97.06%   97.10%   +0.04%     
==========================================
  Files          20       20              
  Lines        1464     1486      +22     
  Branches      161      161              
==========================================
+ Hits         1421     1443      +22     
  Misses         42       42              
  Partials        1        1              
Files Changed Coverage Δ
src/generateTypes.ts 100.00% <100.00%> (ø)
src/lib/buildCustomTypeDataType.ts 100.00% <100.00%> (ø)
src/lib/buildCustomTypeType.ts 100.00% <100.00%> (ø)
src/lib/buildFieldProperties.ts 97.09% <100.00%> (+0.04%) :arrow_up:
src/lib/buildSharedSliceType.ts 93.66% <100.00%> (+0.23%) :arrow_up: