mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
committed by
Andy
parent
09f0e72b83
commit
861b87f6ba
@@ -0,0 +1,7 @@
|
||||
import dashify = require('dashify');
|
||||
|
||||
const output: string = dashify('Foo----Bar');
|
||||
// => 'foo----bar'
|
||||
|
||||
const output2: string = dashify('Foo----Bar', {condense: true});
|
||||
// => 'foo-bar'
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// Type definitions for dashify 1.0
|
||||
// Project: https://github.com/jonschlinkert/dashify
|
||||
// Definitions by: Junyoung Choi <https://github.com/rokt33r>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function dashify(input: string, options?: dashify.Options): string;
|
||||
|
||||
declare namespace dashify {
|
||||
interface Options {
|
||||
condense?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = dashify;
|
||||
@@ -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",
|
||||
"dashify-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user