UNPKG

di-singleton

Version:

Wraps a class constructor to ensure only one instance is created, using lazy initialization and optionally calling an init method if present, while maintaining type safety via TypeScript generics.

1 folder, 4 files
3.06 kB
1.09 kB
881 B
1.79 kB
217 B