Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prismicio/types

Package Overview
Dependencies
Maintainers
17
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/types - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

0

dist/graphql/index.d.ts

@@ -0,0 +0,0 @@ declare const LinkType: {

6

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc