refactor: add region tags for overloads in Register.ts
This commit is contained in:
@@ -2,6 +2,8 @@ import { InitDelegate } from 'src/types/InitDelegate';
|
|||||||
import { TSinjex } from '../classes/TSinjex';
|
import { TSinjex } from '../classes/TSinjex';
|
||||||
import { Identifier } from '../types/Identifier';
|
import { Identifier } from '../types/Identifier';
|
||||||
|
|
||||||
|
//#region Overloads
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A decorator to register a class in the **TSinjex** DI (Dependency Injection) container.
|
* A decorator to register a class in the **TSinjex** DI (Dependency Injection) container.
|
||||||
* @template TargetType The type of the class to be registered.
|
* @template TargetType The type of the class to be registered.
|
||||||
@@ -102,6 +104,8 @@ export function Register<
|
|||||||
deprecated?: boolean,
|
deprecated?: boolean,
|
||||||
): (constructor: TargetType, ...args: unknown[]) => void;
|
): (constructor: TargetType, ...args: unknown[]) => void;
|
||||||
|
|
||||||
|
//#endregion Overloads
|
||||||
|
|
||||||
// eslint-disable-next-line jsdoc/require-jsdoc
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
||||||
export function Register<
|
export function Register<
|
||||||
TargetType extends new (...args: unknown[]) => InstanceType<TargetType>,
|
TargetType extends new (...args: unknown[]) => InstanceType<TargetType>,
|
||||||
|
Reference in New Issue
Block a user