mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Type definitions and tests fro camel-case
This commit is contained in:
parent
a99412d02a
commit
5aef2837fe
10
camel-case/camel-case-tests.ts
Normal file
10
camel-case/camel-case-tests.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/// <reference path="camel-case.d.ts" />
|
||||
|
||||
import camelCase = require('camel-case');
|
||||
|
||||
console.log(camelCase('string')); // => "string"
|
||||
console.log(camelCase('dot.case')); // => "dotCase"
|
||||
console.log(camelCase('PascalCase')); // => "pascalCase"
|
||||
console.log(camelCase('version 1.2.10')); // => "version1_2_10"
|
||||
|
||||
console.log(camelCase('STRING 1.2', 'tr')); // => "strıng1_2"
|
||||
9
camel-case/camel-case.d.ts
vendored
Normal file
9
camel-case/camel-case.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// Type definitions for camel-case
|
||||
// Project: https://github.com/blakeembrey/camel-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "camel-case" {
|
||||
function camelCase(string: string, locale?: string): string;
|
||||
export = camelCase;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user