@elsikora/cladi
Version:
ClaDI is a library for creating and managing classes in TypeScript.
11 lines • 618 B
TypeScript
import type { IFactory } from '../../../domain/interface/index';
import type { IBaseFactoryOptions } from '../../../infrastructure/interface/index';
/**
* 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.
*/
export declare function createFactory<T>(options: IBaseFactoryOptions<T>): IFactory<T>;
//# sourceMappingURL=factory.utility.d.ts.map