Merge pull request #5163 from stpettersens/master

Type definitions and tests for param-case
This commit is contained in:
Masahiro Wakame
2015-08-03 22:51:49 +09:00
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/// <reference path="param-case.d.ts" />
import paramCase = require('param-case');
console.log(paramCase('string')); // => "string"
console.log(paramCase('camelCase')); // => "camel-case"
console.log(paramCase('sentence case')); // => "sentence-case"
console.log(paramCase('MY STRING', 'tr')); // => "my-strıng"

9
param-case/param-case.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type definitions for param-case
// Project: https://github.com/blakeembrey/param-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "param-case" {
function paramCase(string: string, locale?: string): string;
export = paramCase;
}