fix camelcase type definitions

This commit is contained in:
Sam Verschueren
2016-02-20 19:38:32 +01:00
parent 95433230a9
commit 47f676c600
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;
}