prismicio / prismic-ts-codegen

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

fix: restore support for Slice Zones without choices #55

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR fixes a bug where Slice Zones with no choices resulted in invalid syntax.

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #55 (3744c91) into main (e23c465) 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      #55   +/-   ##
=======================================
  Coverage   97.06%   97.06%           
=======================================
  Files          20       20           
  Lines        1464     1464           
  Branches      160      161    +1     
=======================================
  Hits         1421     1421           
  Misses         42       42           
  Partials        1        1           
Impacted Files Coverage Δ
src/lib/buildUnion.ts 100.00% <100.00%> (ø)