Closed
Description
optimize the code of index.js
and index.d.ts
instead.
I think it would also be cool if plugins could extend the constructor options, so something like this would be possible
import { Base } from "javascript-plugin-architecture-with-typescript-definitions";
import { myPlugin } from "my-plugin"
const MyThing = Base.plugin(myPlugin)
const thing = new MyThing({
myPlugin: {
some: "option"
}
})
By importing from "my-plugin", the constructor options for Base
would be expanded with something a type for the myPlugin
key
I'm not sure how to do this, but I think it's possible by merging interfaces?