Files
TSinjex/src/helper/ImplementsStatic.ts
Max P b9a75a36f5 Add Typedoc support and improve documentation
Upgraded the package version to 0.0.9. Introduced Typedoc for generating documentation with added script in package.json. Enhanced exception handling by introducing `DependencyResolutionError`. Refined TSinjex comments and README structure for better readability. Updated index file exports for better module organization.
2024-08-15 17:57:07 +02:00

9 lines
276 B
TypeScript

/**
* 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[]) => {};
}