mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Types for alpha-bravo package (#41176)
* add alpha-bravo template * add with tests * fix
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import alphaBravo = require('alpha-bravo');
|
||||
|
||||
alphaBravo.returnAsString('abc');
|
||||
alphaBravo.returnAsHTML('def');
|
||||
Vendored
+8
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user