Skip to content

Commit

Permalink
feat(customtype): support new format property (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire authored May 25, 2023
1 parent 5f7fbb6 commit c68a557
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/model/customType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ export interface CustomTypeModel<
// TODO: Revert to `label?: string | null` if `label` can be partial in: https://github.com/prismicio/prismic-types-internal/blob/HEAD/src/customtypes/CustomType.ts#L39
label: string | null | undefined;

/**
* The format of the custom type model.
*
* Fallback to "custom" if undefined.
*/
format?: "page" | "custom";

/**
* Determines if more than one document for the custom type can be created.
*/
Expand Down

0 comments on commit c68a557

Please sign in to comment.