add decamelize

This commit is contained in:
Sam Verschueren
2016-03-08 13:23:28 +01:00
parent 9f0f926a12
commit e1bf187e08
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference path="./decamelize.d.ts" />
import decamelize = require('decamelize');
decamelize('unicornRainbow');
decamelize('unicornRainbow', '-');
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for decamelize
// Project: https://github.com/sindresorhus/decamelize
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "decamelize" {
function decamelize(input: string, separator?: string): string;
namespace decamelize {}
export = decamelize;
}