From 0a6aacfc9214d0397e3078c58a0d3688cfd0407d Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Sun, 24 Jan 2016 03:07:32 -0500 Subject: [PATCH] Adding typedef --- xml2js-xpath.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 xml2js-xpath.d.ts diff --git a/xml2js-xpath.d.ts b/xml2js-xpath.d.ts new file mode 100644 index 0000000..dfc4e95 --- /dev/null +++ b/xml2js-xpath.d.ts @@ -0,0 +1,9 @@ +declare module 'xml2js-xpath'{ + export = xpath; + + module xpath{ + function evalFirst(json: any, path: string, fetch?: boolean | string): any | string; + function find(json: any, path: string): any[]; + function jsonText(json: string | any): string; + } +}