UNPKG

1.32 kBTypeScriptView Raw
1export declare type JsonldNodeObject = {
2 [key: string]: JsonldListSetPrimitive;
3};
4export declare type JsonPrimitive = string | number | boolean | null | JsonldNodeObject;
5export interface JsonldValueObjectWithType {
6 "@value": string | number | boolean | null;
7 "@type"?: string | null;
8 "@index"?: string;
9 "@context"?: any;
10}
11export interface JsonldValueObjectWithLanguage {
12 "@value": string | number | boolean | null;
13 "@language"?: string | null;
14 "@index"?: string;
15 "@context"?: any;
16}
17export declare type JsonldValueObject = JsonldValueObjectWithType | JsonldValueObjectWithLanguage;
18export declare type JsonldListSetPrimitive = string | number | boolean | null | JsonldNodeObject | JsonldValueObject;
19export declare type JsonldListSetValue = JsonldListSetPrimitive | JsonldListSetPrimitive[];
20export declare function arrayify<T>(input: (T & JsonldListSetPrimitive) | (T[] & JsonldListSetPrimitive[])): T[] & JsonldListSetPrimitive[];
21export declare function isJsonldListSetPrimitive(x: any): boolean;
22export declare function getValuesLSV(input: JsonldListSetValue): JsonldListSetPrimitive[];
23export declare function intersectsLSV(x: JsonldListSetValue, y: JsonldListSetValue): boolean;
24export declare function unionLSV(...inputs: JsonldListSetValue[]): JsonldListSetPrimitive[];