I am building some helper classes that operate on or get some specific DOM element types.
So I have for example an HTMLDivElementHelper all public methods should return HTMLDivElement.
Those methods contain at least one params but they can also contain 2.
I am trying to force this with an interface or similar but I can not find how to do it.
If I use class MyHelper implements Record<string, () => HTMLDivElement> Typescript complains that Property 'setValue' of type '(selector: string) => HTMLDivElement' is not assignable to 'string' index type '() => HTMLDivElement'.(2411)
Is this possible?