Add simple-xml types (#13069)

* Add simple-xml types

* Review changes
This commit is contained in:
Vitaliy Isikov
2016-12-28 10:46:20 -05:00
committed by Andy
parent f0452899f4
commit 986f1e5ec0
4 changed files with 33 additions and 0 deletions

12
simple-xml/index.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
// Type definitions for simple-xml 0.10
// Project: https://github.com/AirAsiaExpedia/node-simple-xml
// Definitions by: Vitaliy Isikov <https://github.com/notVitaliy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace simple.xml {
export function stringify(obj: {}): string;
export function parse(data: string): {};
}
export = simple.xml;

View File

20
simple-xml/tsconfig.json Normal file
View File

@@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"simple-xml-tests.ts"
]
}

1
simple-xml/tslint.json Normal file
View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }