@types/configurable
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

// 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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/configurable

Weekly Downloads

6

Version

0.0.3

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types