prismicio / prismic-types

Type definitions for Prismic content, models, and APIs
https://prismic.io/docs/technologies/javascript
Apache License 2.0
11 stars 4 forks source link

feat: add custom type model types #2

Closed angeloashmore closed 3 years ago

angeloashmore commented 3 years ago

Types of changes

Description

This PR adds types for Custom Type models. The types reflect the JSON shape used to defined a Custom Type in Prismic.

The types would be used whenever interacting with the models directly. For example, the types could be used when using the Custom Types API. It could also be used in packages that parse Custom Type models.

Checklist:

{\__/}
( • . •)
/ >🍰
codecov-commenter commented 3 years ago

Codecov Report

Merging #2 (a38a098) into master (a2e41d6) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           31        31           
=========================================
  Hits            31        31           
Impacted Files Coverage Δ
src/index.ts 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a2e41d6...a38a098. Read the comment docs.