@byungi/p-class
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@byungi/p-class

A inheritable promise.

Why?

Alternatives on platforms that can not inherit the built-in promise.

Example

import PClass from '@byungi/p-class'

class CustomPromise extends PClass {
    constructor(executor){
        super(executor)
    }
}

const promise = new CustomPromise(/* ... */)

promise.then(() => /* ... */)

License

MIT

Package Sidebar

Install

npm i @byungi/p-class

Weekly Downloads

33

Version

0.2.0

License

MIT

Unpacked Size

2.31 kB

Total Files

4

Last publish

Collaborators

  • skt-t1-byungi