mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Merge pull request #5163 from stpettersens/master
Type definitions and tests for param-case
This commit is contained in:
9
param-case/param-case-tests.ts
Normal file
9
param-case/param-case-tests.ts
Normal 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
9
param-case/param-case.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user