Skip to content

afeiship/next-stub-singleton

Repository files navigation

next-stub-singleton

Stub code for singleton.

version license size download

installation

yarn add @jswork/next-stub-singleton

usage

import "@jswork/next-stub-singleton"; class Person { constructor(public name) { this.name = name; } } Object.assign(Person, nx.stubSingleton()); const app = (Person as unknown as SingletonType).getInstance("abc"); console.log(app);

license

Code released under the MIT license.

About

Stub code for singleton.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors