UNPKG

xml-from-object

Version:

Easy, highly typed and customizable way to build your xml using JS/TS plain objects.

24 lines (23 loc) 641 B
import { FromObjectSchema } from "./from-object-schema"; export declare type FromObjectInternalValue = ArrayOfStringValueType | StringValueType | ArrayOfObjectsType | ObjectType | SelfClosingTyope; declare type ArrayOfStringValueType = { value: string[]; type: "array-of-string"; }; declare type StringValueType = { value: string; type: "string"; }; declare type ArrayOfObjectsType = { value: FromObjectSchema[]; type: "array-of-object"; }; declare type ObjectType = { value: FromObjectSchema; type: "object"; }; declare type SelfClosingTyope = { value: undefined; type: "self-closing"; }; export {};