3.0.4 • Published 6 months ago

@types/object-keys-mapping v3.0.4

Weekly downloads
20
License
MIT
Repository
github
Last release
6 months ago

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.

3.0.4

6 months ago

3.0.3

6 months ago

3.0.2

7 months ago

3.0.1

3 years ago

3.0.0

6 years ago