@prismicio/types
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -0,0 +0,0 @@ declare const LinkType: { |
@@ -360,3 +360,3 @@ declare type EmptyObjectField = Record<string, never>; | ||
*/ | ||
declare type SelectField<Enum = string, State extends FieldState = FieldState> = State extends "empty" ? null : Enum; | ||
declare type SelectField<Enum extends string = string, State extends FieldState = FieldState> = State extends "empty" ? null : Enum; | ||
/** | ||
@@ -421,3 +421,3 @@ * A Boolean field. | ||
*/ | ||
declare type GroupField<Fields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> = Fields[]; | ||
declare type GroupField<Fields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>, State extends FieldState = FieldState> = State extends "empty" ? [] : [Fields, ...Fields[]]; | ||
/** | ||
@@ -472,3 +472,3 @@ * Integration Fields for Custom APIs | ||
*/ | ||
declare type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice> = Slices[]; | ||
declare type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]]; | ||
declare type AnyRegularField = TitleField | RichTextField | ImageField | RelationField | LinkField | LinkToMediaField | DateField | TimestampField | ColorField | NumberField | KeyTextField | SelectField | BooleanField | EmbedField | GeoPointField | IntegrationFields; | ||
@@ -475,0 +475,0 @@ |
{ | ||
"name": "@prismicio/types", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Type definitions for Prismic related structure", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -532,3 +532,3 @@ type EmptyObjectField = Record<string, never>; | ||
export type SelectField< | ||
Enum = string, | ||
Enum extends string = string, | ||
State extends FieldState = FieldState, | ||
@@ -620,3 +620,4 @@ > = State extends "empty" ? null : Enum; | ||
>, | ||
> = Fields[]; | ||
State extends FieldState = FieldState, | ||
> = State extends "empty" ? [] : [Fields, ...Fields[]]; | ||
@@ -705,3 +706,4 @@ /** | ||
Slices extends Slice | SharedSlice = Slice | SharedSlice, | ||
> = Slices[]; | ||
State extends FieldState = FieldState, | ||
> = State extends "empty" ? [] : [Slices, ...Slices[]]; | ||
@@ -708,0 +710,0 @@ // Misc |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3022
172419