First check-in of the code from the Obsidian Prj project.
This commit is contained in:
7
src/helper/ImplementsStatic.ts
Normal file
7
src/helper/ImplementsStatic.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Decorator to enforce static implementation of an interface
|
||||
* @returns A decorator function
|
||||
*/
|
||||
export function ImplementsStatic<I>() {
|
||||
return <T extends I>(constructor: T, ...args: unknown[]) => {};
|
||||
}
|
Reference in New Issue
Block a user