semantic-analysis
Version:
Extensible semantic Structured Data analysis library for Microdata and JSON-LD
23 lines (22 loc) • 618 B
TypeScript
import { IItem, Value } from "./IItem";
/**
* Item interface type guard
* @param value To inspect
*/
export declare const isItem: <T extends IItem = IItem>(value: Value<T>) => value is T;
/**
* String type guard
* @param value To inspect
*/
export declare const isValuePrimitive: (value: Value) => value is string;
/**
* Find out whether is valid URL
* @param s To check
*/
export declare function isUrl(s: string): boolean;
/**
* Combines term to the base address
* @param term Term to complete
* @param base Base to apply term to
*/
export declare function combine(term: string, base?: string): string;