mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 22:40:03 +08:00
* Add Recase typings * Add relaxed-json type definitions * Update Recase and Relaxed-JSON types as per PR review * Update Recase and Relaxed-JSON types
15 lines
407 B
TypeScript
15 lines
407 B
TypeScript
// Type definitions for Recase 1.0
|
|
// Project: https://www.npmjs.com/package/recase
|
|
// Definitions by: Mikal Madsen <https://github.com/18steps>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface Recase {
|
|
camelCopy(orig: any): any;
|
|
snakeCopy(orig: any): any;
|
|
}
|
|
export function create(opts: {
|
|
exceptions?: {
|
|
[origKey: string]: string;
|
|
};
|
|
}): Recase;
|