Files
TSinjex/src/helper/ImplementsStatic.ts
Max P f7c4e609c2 ### Raise Coverage and Enhance Testing
Increased coverage thresholds to 90% across all metrics. Added exclusions for `.spec.ts` and `.test.ts` files to the coverage configuration. Introduced new test files for `Decorators` and `Functions`, incorporating detailed unit tests for decorators and DI functionalities. Removed outdated and redundant test files, consolidating their functionality into the updated tests. Also added new npm script for jest watch mode. Marked helper and main index files to be ignored by the coverage.
2024-08-16 17:31:55 +02:00

11 lines
304 B
TypeScript

/* istanbul ignore file */
/**
* Decorator to enforce static implementation of an interface.
* Warns on compile time if the interface is not implemented.
* @returns A decorator function
*/
export function ImplementsStatic<I>() {
return <T extends I>(constructor: T, ...args: unknown[]) => {};
}