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; + } +}