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

datocms-structured-text-utils

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-structured-text-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

dist/esm/guards.d.ts

@@ -17,3 +17,3 @@ import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode, InlineNode, Record, StructuredText, ThematicBreak, Document } from './types';

export declare function isThematicBreak(node: Node): node is ThematicBreak;
export declare function isStructuredText<R extends Record>(obj: any): obj is StructuredText<R>;
export declare function isStructuredText<R1 extends Record, R2 extends Record = R1>(obj: any): obj is StructuredText<R1, R2>;
export declare function isDocument(obj: any): obj is Document;

@@ -26,2 +26,2 @@ import { Node, Record, Document, StructuredText } from './types';

};
export declare function render<H extends TrasformFn, T extends TrasformFn, F extends TrasformFn, R extends Record>(adapter: Adapter<H, T, F>, structuredTextOrNode: StructuredText<R> | Document | Node | null | undefined, renderRules: RenderRule<H, T, F>[]): RenderResult<H, T, F>;
export declare function render<H extends TrasformFn, T extends TrasformFn, F extends TrasformFn, R1 extends Record, R2 extends Record = R1>(adapter: Adapter<H, T, F>, structuredTextOrNode: StructuredText<R1, R2> | Document | Node | null | undefined, renderRules: RenderRule<H, T, F>[]): RenderResult<H, T, F>;

@@ -372,9 +372,9 @@ export declare type Node = BlockNode | InlineNode;

*/
export declare type StructuredText<R extends Record = Record> = {
export declare type StructuredText<R1 extends Record = Record, R2 extends Record = R1> = {
/** A DatoCMS compatible document */
value: Document;
/** Blocks associated with the Structured Text */
blocks?: R[];
blocks?: R1[];
/** Links associated with the Structured Text */
links?: R[];
links?: R2[];
};

@@ -381,0 +381,0 @@ export declare type Record = {

@@ -17,3 +17,3 @@ import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode, InlineNode, Record, StructuredText, ThematicBreak, Document } from './types';

export declare function isThematicBreak(node: Node): node is ThematicBreak;
export declare function isStructuredText<R extends Record>(obj: any): obj is StructuredText<R>;
export declare function isStructuredText<R1 extends Record, R2 extends Record = R1>(obj: any): obj is StructuredText<R1, R2>;
export declare function isDocument(obj: any): obj is Document;

@@ -26,2 +26,2 @@ import { Node, Record, Document, StructuredText } from './types';

};
export declare function render<H extends TrasformFn, T extends TrasformFn, F extends TrasformFn, R extends Record>(adapter: Adapter<H, T, F>, structuredTextOrNode: StructuredText<R> | Document | Node | null | undefined, renderRules: RenderRule<H, T, F>[]): RenderResult<H, T, F>;
export declare function render<H extends TrasformFn, T extends TrasformFn, F extends TrasformFn, R1 extends Record, R2 extends Record = R1>(adapter: Adapter<H, T, F>, structuredTextOrNode: StructuredText<R1, R2> | Document | Node | null | undefined, renderRules: RenderRule<H, T, F>[]): RenderResult<H, T, F>;

@@ -372,9 +372,9 @@ export declare type Node = BlockNode | InlineNode;

*/
export declare type StructuredText<R extends Record = Record> = {
export declare type StructuredText<R1 extends Record = Record, R2 extends Record = R1> = {
/** A DatoCMS compatible document */
value: Document;
/** Blocks associated with the Structured Text */
blocks?: R[];
blocks?: R1[];
/** Links associated with the Structured Text */
links?: R[];
links?: R2[];
};

@@ -381,0 +381,0 @@ export declare type Record = {

{
"name": "datocms-structured-text-utils",
"version": "2.0.0",
"version": "2.0.1",
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields.",

@@ -37,3 +37,3 @@ "keywords": [

},
"gitHead": "61ddea692c97736a0b0ceaec80f40ea8f4aa1a0d"
"gitHead": "bd8797b10e150b783de4800d39a69503ec20d772"
}

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