mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Merge pull request #5191 from stpettersens/master
Type definitions and tests for pascal-case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="pascal-case.d.ts" />
|
||||
|
||||
import pascalCase = require('pascal-case');
|
||||
|
||||
console.log(pascalCase('string')); // => "String"
|
||||
console.log(pascalCase('camelCase')); // => "CamelCase"
|
||||
console.log(pascalCase('sentence case')); // => "SentenceCase"
|
||||
|
||||
console.log(pascalCase('MY STRING', 'tr')); // => "MyStrıng"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for pascal-case
|
||||
// Project: https://github.com/blakeembrey/pascal-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "pascal-case" {
|
||||
function pascalCase(string: string, locale?: string): string;
|
||||
export = pascalCase;
|
||||
}
|
||||
Reference in New Issue
Block a user