deline types (#25666)

This commit is contained in:
Inaki Arroyo
2018-05-10 13:19:38 -07:00
committed by Sheetal Nandi
parent 5e47df0e65
commit f0b4609d77
4 changed files with 43 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import * as dl from "deline";
const moduleName = "deline";
dl.deline(`deline`); // $ExpectType string
dl.deline(`module name: ${moduleName}`); // $ExpectType string
dl.deline`deline`; // $ExpectType string
dl.deline`tagged template: ${moduleName}`; // $ExpectType string
dl.deline`
tagged template:
${moduleName}
`;
+6
View File
@@ -0,0 +1,6 @@
// Type definitions for deline 1.0
// Project: https://github.com/airbnb/deline#readme
// Definitions by: Inaki Arroyo <https://github.com/iarroyo5>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function deline(strings: string | TemplateStringsArray, ...values: any[]): string;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"deline-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }