Types for alpha-bravo package (#41176)

* add alpha-bravo template

* add with tests

* fix
This commit is contained in:
garyking
2019-12-23 12:19:34 -06:00
committed by Andrew Branch
parent d9d2f9f44c
commit b2895afb19
4 changed files with 36 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
import alphaBravo = require('alpha-bravo');
alphaBravo.returnAsString('abc');
alphaBravo.returnAsHTML('def');
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for alpha-bravo 2.0
// Project: https://www.npmjs.com/package/alpha-bravo
// Definitions by: Gary King <https://github.com/garyking>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function returnAsString(input: string): string;
export function returnAsHTML(input: string): string;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"alpha-bravo-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }