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.
9 lines
276 B
TypeScript
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[]) => {};
|
|
}
|