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
TypeScript
import RhineVarMap from "../var/items/rhine-var-map.class";
import RhineVarArray from "../var/items/rhine-var-array.class";
import RhineVarText from "../var/items/rhine-var-text.class";
import RhineVarXmlFragment from "../var/items/rhine-var-xml-fragment.class";
import RhineVarXmlElement from "../var/items/rhine-var-xml-element.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";
import { Native } from "../native/native.type";
import RhineVarObject from "../var/items/rhine-var-object.class";
export declare function isRhineVar(value: any): value is RhineVarXmlText | RhineVarXmlElement<any> | RhineVarXmlFragment | RhineVarText | RhineVarObject<any> | RhineVarMap<any, any> | RhineVarArray<any, any>;
export declare function ensureRhineVar<T extends object = any>(value: T | Native, parent: RhineVarBase<any>): 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