Merge pull request #26128 from 0xProject/feature/to-snake-case

Add types for to-snake-case
This commit is contained in:
Daniel Rosenwasser
2018-05-29 22:11:34 -07:00
committed by GitHub
4 changed files with 27 additions and 0 deletions

7
types/to-snake-case/index.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
// Type definitions for to-snake-case 1.0
// Project: https://github.com/ianstormtaylor/to-snake-case
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function toSnakeCase(str: string): string;
export = toSnakeCase;

View File

@@ -0,0 +1,3 @@
import toSnakeCase = require('to-snake-case');
toSnakeCase('camelCase');

View File

@@ -0,0 +1,16 @@
{
"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-snake-case-tests.ts"]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }