Options for createSingleton.

1.2.2

interface SingletonOptions {
    version?: number;
}

Properties

Properties

version?: number

Bump this number to invalidate a cached instance (e.g. after changing the factory config). The old instance is replaced on the next call.