Skip to content

Commit e1bf187

Browse files
add decamelize
1 parent 9f0f926 commit e1bf187

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

decamelize/decamelize-tests.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference path="./decamelize.d.ts" />
2+
3+
import decamelize = require('decamelize');
4+
5+
decamelize('unicornRainbow');
6+
decamelize('unicornRainbow', '-');

decamelize/decamelize.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Type definitions for decamelize
2+
// Project: https://github.com/sindresorhus/decamelize
3+
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
declare module "decamelize" {
7+
function decamelize(input: string, separator?: string): string;
8+
namespace decamelize {}
9+
export = decamelize;
10+
}

0 commit comments

Comments
 (0)