0.0.3 • Published 7 months ago

@types/configurable v0.0.3

Weekly downloads
54
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/configurable

Summary

This package contains type definitions for configurable (https://www.npmjs.com/package/configurable).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/configurable.

index.d.ts

// Type definitions for configurable 0.0
// Project: https://www.npmjs.com/package/configurable
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

// Make any object configurable
declare function configurable<T extends object>(obj: T): T & Configurable<T>;
export = configurable;

interface Configurable<T> {
    settings: {
        [key: string]: any;
    };

    set(name: string, val: any): T & Configurable<T>;

    get(name: string): any;

    enable(name: string): T & Configurable<T>;

    disable(name: string): T & Configurable<T>;

    enabled(name: string): boolean;

    disabled(name: string): boolean;
}

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:34:25 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.