mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge pull request #5208 from stpettersens/master
Type definitions and tests for path-case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="path-case.d.ts" />
|
||||
|
||||
import pathCase = require('path-case');
|
||||
|
||||
console.log(pathCase('string')); // => "string"
|
||||
console.log(pathCase('camelCase')); // => "camel/case"
|
||||
console.log(pathCase('sentence case')); // => "sentence/case"
|
||||
|
||||
console.log(pathCase('MY STRING', 'tr')); // => "my.strıng"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for path-case
|
||||
// Project: https://github.com/blakeembrey/path-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "path-case" {
|
||||
function pathCase(string: string, locale?: string): string;
|
||||
export = pathCase;
|
||||
}
|
||||
Reference in New Issue
Block a user