Decorator that realize singletone pattern
import { singleton } from '@biorate/collection';@singleton()class Test {}const a = new Test();const b = new Test();console.log(a === b); // true Copy
import { singleton } from '@biorate/collection';@singleton()class Test {}const a = new Test();const b = new Test();console.log(a === b); // true
Generated using TypeDoc
Description
Decorator that realize singletone pattern
Example