UNPKG

@stencila/schema

Version:

Extensions to schema.org to support semantic, composable, parameterize-able and executable documents

8 lines (7 loc) 202 B
import { Types, Node } from '../types'; /** * Get the type of a node * * @param {Node} node The schema node to get the type for */ export declare const nodeType: (node: Node) => keyof Types;