UNPKG

@elsikora/cladi

Version:

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

18 lines (15 loc) 706 B
import '../../../domain/enum/logger-log-level.enum.js'; import '../../../infrastructure/constant/console-logger-default-options.constant.js'; import { BaseFactory } from '../../../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 BaseFactory(options); } export { createFactory }; //# sourceMappingURL=factory.utility.js.map