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

1.0.3 • Public • Published

Installation

npm install --save @types/proxymise

Summary

This package contains type definitions for proxymise (https://github.com/kozhevnikov/proxymise#readme).

Details

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

index.d.ts

type Proxymise<T> =
    & {
        [key in keyof T]: T[key] extends (...args: infer Params) => Promise<infer Return>
            ? (...args: Params) => Proxymise<Return>
            : T[key];
    }
    & Promise<T>;

declare function proxymise<T>(target: T): Proxymise<T>;

export = proxymise;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by César Suárez.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/proxymise

Weekly Downloads

454

Version

1.0.3

License

MIT

Unpacked Size

3.13 kB

Total Files

5

Last publish

Collaborators

  • types