datocms-structured-text-utils
Advanced tools
Comparing version 0.1.0-alpha.6 to 0.1.0-alpha.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isInlineItem = exports.isItemLink = exports.isLink = exports.isCode = exports.isBlock = exports.isBlockquote = exports.isListItem = exports.isList = exports.isParagraph = exports.isRoot = exports.isSpan = exports.isHeading = exports.hasChildren = void 0; | ||
exports.isInlineItem = exports.isItemLink = exports.isLink = exports.isCode = exports.isBlock = exports.isBlockquote = exports.isListItem = exports.isList = exports.isParagraph = exports.isRoot = exports.isSpan = exports.isHeading = exports.isInlineNode = exports.hasChildren = void 0; | ||
var definitions_1 = require("./definitions"); | ||
@@ -9,2 +9,6 @@ function hasChildren(node) { | ||
exports.hasChildren = hasChildren; | ||
function isInlineNode(node) { | ||
return definitions_1.inlineNodeTypes.includes(node.type); | ||
} | ||
exports.isInlineNode = isInlineNode; | ||
function isHeading(node) { | ||
@@ -11,0 +15,0 @@ return node.type === definitions_1.headingNodeType; |
@@ -1,3 +0,4 @@ | ||
import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode } from './types'; | ||
import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode, InlineNode } from './types'; | ||
export declare function hasChildren(node: Node): node is WithChildrenNode; | ||
export declare function isInlineNode(node: Node): node is InlineNode; | ||
export declare function isHeading(node: Node): node is Heading; | ||
@@ -4,0 +5,0 @@ export declare function isSpan(node: Node): node is Span; |
{ | ||
"name": "datocms-structured-text-utils", | ||
"version": "0.1.0-alpha.6", | ||
"version": "0.1.0-alpha.7", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "f214ca46c15153498e566ffbdb8a9ce51a7ee0c9" | ||
"gitHead": "addcc2cab1d71d1b1ff52b179c534a67eb3a2405" | ||
} |
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
23392
384