datocms-structured-text-utils
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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
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
81800
1608