Merge pull request #7602 from SamVerschueren/camelcase

add camelcase
This commit is contained in:
Horiuchi_H
2016-01-14 16:36:54 +09:00
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;
}