mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #23495 from tuananh/add-camaro-type
Add types for camaro package
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import transform = require('camaro');
|
||||
|
||||
const x: object = transform('<root><child>text</child></root>', { text: 'root/child'});
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Type definitions for camaro 2.2
|
||||
// Project: https://github.com/tuananh/camaro
|
||||
// Definitions by: Tuan Anh Tran <https://github.com/tuananh>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
/**
|
||||
* Transform the input xml to json using the input template object.
|
||||
* @param input The input xml string
|
||||
* @param template The output template
|
||||
*/
|
||||
declare function transform(input: string, template: object): object;
|
||||
export = transform;
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"camaro-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user