From 9865126cabcc8f767acbef502eb226d0a8510807 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Mon, 16 Aug 2021 17:32:34 +0200 Subject: [PATCH] xml functions --- index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index.d.ts b/index.d.ts index f5f1d87..4dd583c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -367,6 +367,22 @@ export interface HookContext extends GetHookData, GetHookGetOnlyData, PostHookDa * @param path */ fsMkDir(path: string): void + + /** + * create xml string + * + * @param data object or array + * @param options options + */ + xmlCreate(data: any, options?: {}): string + + /** + * parse xml string to json + * + * @param xml xml string + * @param options options + */ + xmlParse(xml:string, options?: {}): any } export interface HookException {