mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(dedent): add typings for dedent
This commit is contained in:
parent
09c31b3084
commit
095c701760
11
types/dedent/dedent-tests.ts
Normal file
11
types/dedent/dedent-tests.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import dedent from 'dedent';
|
||||
|
||||
const lines: string = dedent`
|
||||
first
|
||||
second
|
||||
third
|
||||
`;
|
||||
|
||||
const text: string = dedent(`
|
||||
A test argument.
|
||||
`);
|
||||
7
types/dedent/index.d.ts
vendored
Normal file
7
types/dedent/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for dedent v0.7.0
|
||||
// Project: https://github.com/dmnd/dedent
|
||||
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export default function dedent(literals: string): string;
|
||||
export default function dedent(literals: TemplateStringsArray, ...placeholders: any[]): string;
|
||||
22
types/dedent/tsconfig.json
Normal file
22
types/dedent/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"dedent-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/dedent/tslint.json
Normal file
1
types/dedent/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user