refactor(resolve): rename necessary parameter to isNecessary for clarity

This commit is contained in:
2025-04-02 21:45:53 +02:00
committed by 20Max01
parent 81fb7f0071
commit a6fabc329b

View File

@@ -15,12 +15,12 @@ export function resolve<T>(identifier: Identifier): T;
* Resolve a dependency
* @param identifier The identifier used to register the class in the DI container.
* @see {@link Identifier} for more information on identifiers.
* @param necessary The dependency is **not** necessary.
* @param isNecessary The dependency is **not** necessary.
* @returns The resolved dependency or undefined if the dependency is not found.
*/
export function resolve<T>(
identifier: Identifier,
necessary: false,
isNecessary: false,
): T | undefined;
/**