@hestia-earth/schema
Version:
Hestia Schema
10 lines (9 loc) • 668 B
TypeScript
import { JSON, SchemaType, NodeType } from '../types';
export declare const isTypeNode: (type: SchemaType | NodeType) => boolean;
export declare const isNode: <T extends SchemaType>({ type }: Partial<JSON<T>>) => boolean;
export declare const jsonldPath: (type: SchemaType | NodeType, id: string) => string;
export declare const isTypeValid: <T extends SchemaType>({ type }: Partial<JSON<T>>) => boolean;
export declare const isBlankNode: (node: any) => boolean;
export declare const isExpandable: (val: any) => boolean;
export declare const typeToSchemaType: (type?: string) => SchemaType;
export declare const refToSchemaType: (ref?: string) => string | SchemaType;