mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(to-slug-case): new type definition (#43404)
Types for utility function: - definition file - test https://www.npmjs.com/package/to-slug-case Thanks!
This commit is contained in:
parent
c45ee40049
commit
54efff975c
8
types/to-slug-case/index.d.ts
vendored
Normal file
8
types/to-slug-case/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for to-slug-case 1.0
|
||||
// Project: https://github.com/ianstormtaylor/to-slug-case
|
||||
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function toSlugCase(str: string): string;
|
||||
|
||||
export = toSlugCase;
|
||||
3
types/to-slug-case/to-slug-case-tests.ts
Normal file
3
types/to-slug-case/to-slug-case-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import toSlugCase = require('to-slug-case');
|
||||
|
||||
toSlugCase('camelCase'); // $ExpectType string
|
||||
23
types/to-slug-case/tsconfig.json
Normal file
23
types/to-slug-case/tsconfig.json
Normal file
@ -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",
|
||||
"to-slug-case-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/to-slug-case/tslint.json
Normal file
1
types/to-slug-case/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user