mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Type definitions and tests for constant-case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="constant-case.d.ts" />
|
||||
|
||||
import constantCase = require('constant-case');
|
||||
|
||||
console.log(constantCase('string')); // => "STRING"
|
||||
console.log(constantCase('PascalCase')); // => "PASCAL_CASE"
|
||||
|
||||
console.log(constantCase('myString', 'tr')); // => "MY_STRİNG"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for constant-case
|
||||
// Project: https://github.com/blakeembrey/constant-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "constant-case" {
|
||||
function constantCase(string: string, locale?: string): string;
|
||||
export = constantCase;
|
||||
}
|
||||
Reference in New Issue
Block a user