3.0.4 • Published 6 months ago
@types/object-keys-mapping v3.0.4
Installation
npm install --save @types/object-keys-mapping
Summary
This package contains type definitions for object-keys-mapping (https://github.com/coderhaoxin/object-keys-mapping#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object-keys-mapping.
index.d.ts
// Type definitions for object-keys-mapping 3.0
// Project: https://github.com/coderhaoxin/object-keys-mapping#readme
// Definitions by: newraina <https://github.com/newraina>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export function trim(origin: object, ignore?: (v: any) => boolean): object;
export function trim(origin: ReadonlyArray<object>, ignore?: (v: any) => boolean): object[];
export function toCamelcase(origin: object): object;
export function toCamelcase(origin: ReadonlyArray<object>): object[];
export function reverseCamelcase(origin: object): object;
export function reverseCamelcase(origin: ReadonlyArray<object>): object[];
export interface OperatorOptions {
camelcase?: boolean | undefined;
mapping?: object | undefined;
}
export class Operator {
constructor(opts?: { camelcase?: boolean | undefined });
map(origin: object): object;
map(origin: ReadonlyArray<object>): object[];
mapField(path: string): string;
mapObject(origin: object, path: string): object;
mapArray(origin: ReadonlyArray<object>): object[];
}
Additional Details
- Last updated: Thu, 08 Jul 2021 18:51:44 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by newraina.