camaro: Provides its own types (#39643)

This commit is contained in:
Alexander T
2019-11-01 10:36:55 -07:00
committed by Jesse Trinity
parent af5b50b662
commit 30fbc67c4b
5 changed files with 6 additions and 40 deletions
+6
View File
@@ -372,6 +372,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/callsites",
"asOfVersion": "3.0.0"
},
{
"libraryName": "camaro",
"typingsPackageName": "camaro",
"sourceRepoURL": "https://github.com/tuananh/camaro",
"asOfVersion": "2.2.4"
},
{
"libraryName": "camel-case",
"typingsPackageName": "camel-case",
-3
View File
@@ -1,3 +0,0 @@
import transform = require('camaro');
const x: object = transform('<root><child>text</child></root>', { text: 'root/child'});
-13
View File
@@ -1,13 +0,0 @@
// 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;
-23
View File
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"camaro-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }