mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
deline types (#25666)
This commit is contained in:
committed by
Sheetal Nandi
parent
5e47df0e65
commit
f0b4609d77
@@ -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}
|
||||
`;
|
||||
Vendored
+6
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user