mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Add xml2js definition
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/// <reference path="xml2js.d.ts" />
|
||||
|
||||
import xml2js = require('xml2js');
|
||||
|
||||
xml2js.parseString("<root>Hello xml2js!</root>", (err: any, result: any) => { });
|
||||
|
||||
xml2js.parseString("<root>Hello xml2js!</root>", {trim: true}, (err: any, result: any) => { });
|
||||
Reference in New Issue
Block a user