UNPKG

rhine-var

Version:

Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.

18 lines 1.44 kB
import { Native } from "../native/native.type"; import RhineVarArray from "../var/items/rhine-var-array.class"; import RhineVarMap from "../var/items/rhine-var-map.class"; import RhineVarObject from "../var/items/rhine-var-object.class"; import RhineVarText from "../var/items/rhine-var-text.class"; import RhineVarXmlElement from "../var/items/rhine-var-xml-element.class"; import RhineVarXmlFragment from "../var/items/rhine-var-xml-fragment.class"; import RhineVarXmlText from "../var/items/rhine-var-xml-text.class"; import RhineVarBase from "../var/rhine-var-base.class"; import { RhineVarAny, StoredRhineVar } from "../var/rhine-var.type"; export declare function isRhineVar(value: any): value is RhineVarText | RhineVarXmlFragment | RhineVarXmlText | RhineVarObject<any> | RhineVarXmlElement<any> | RhineVarMap<any, any> | RhineVarArray<any, any>; export declare function ensureRhineVar<T extends object = any>(value: T | Native, parent: RhineVarBase): StoredRhineVar<T> | any; export declare function ensureNative<T extends object = any>(value: T | RhineVarBase<T> | Native): Native; export type Basic = string | number | boolean | null | undefined; export declare function ensureNativeOrBasic<T = any>(value: T): Native | Basic; export declare function isBasic(value: any): value is Basic; export declare function ensureJsonOrBasic<T = any>(value: T | Native | RhineVarAny): Basic | object; //# sourceMappingURL=var.utils.d.ts.map