UNPKG

@elsikora/cladi

Version:

ClaDI is a library for creating and managing classes in TypeScript.

20 lines (16 loc) 753 B
'use strict'; require('../../../domain/enum/logger-log-level.enum.js'); require('../../../infrastructure/constant/console-logger-default-options.constant.js'); var factory_class = require('../../../infrastructure/class/base/factory.class.js'); /** * Creates a new factory instance. * @param {IBaseFactoryOptions<T>} options - The options to use for the factory. * @returns {IFactory<T>} A new factory instance. * @template T The type of items created by the factory. * @see {@link https://elsikora.com/docs/cladi/core-concepts/factory} for more information on factories. */ function createFactory(options) { return new factory_class.BaseFactory(options); } exports.createFactory = createFactory; //# sourceMappingURL=factory.utility.js.map