diff --git a/dot-case/dot-case-tests.ts b/dot-case/dot-case-tests.ts new file mode 100644 index 000000000..d5713aeba --- /dev/null +++ b/dot-case/dot-case-tests.ts @@ -0,0 +1,9 @@ +/// + +import dotCase = require('dot-case'); + +console.log(dotCase('string')); // => "string" +console.log(dotCase('camelCase')); // => "camel.case" +console.log(dotCase('sentence case')); // => "sentence.case" + +console.log(dotCase('MY STRING', 'tr')); // => "my.strıng" diff --git a/dot-case/dot-case.d.ts b/dot-case/dot-case.d.ts new file mode 100644 index 000000000..5e02a2342 --- /dev/null +++ b/dot-case/dot-case.d.ts @@ -0,0 +1,9 @@ +// Type definitions for dot-case +// Project: https://github.com/blakeembrey/dot-case +// Definitions by: Sam Saint-Pettersen +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "dot-case" { + function dotCase(string: string, locale?: string): string; + export = dotCase; +}