Merge pull request #8191 from SamVerschueren/camelcase

fix camelcase type definitions
This commit is contained in:
Horiuchi_H
2016-02-22 12:43:55 +09:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference path="./camelcase.d.ts" />
import camelCase from 'camelcase';
import camelCase = require('camelcase');
camelCase('foo-bar');
camelCase('foo_bar');
+3 -1
View File
@@ -4,5 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "camelcase" {
export default function camelcase(...args: string[]): string;
function camelcase(...args: string[]): string;
namespace camelcase {}
export = camelcase;
}