add camelcase

This commit is contained in:
Sam Verschueren
2016-01-13 08:42:58 +01:00
parent 1984ea435f
commit cf21ce49f0
2 changed files with 20 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/// <reference path="./camelcase.d.ts" />
import camelCase from 'camelcase';
camelCase('foo-bar');
camelCase('foo_bar');
camelCase('Foo-Bar');
camelCase('--foo.bar');
camelCase('__foo__bar__');
camelCase('foo bar');
camelCase('foo', 'bar');
camelCase('__foo__', '--bar');
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for camelcase
// Project: https://github.com/sindresorhus/camelcase
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "camelcase" {
export default function camelcase(...args: string[]): string;
}