Closed tobimori closed 1 year ago
My issue is this will break upon rebuilding of the library as the typedefs are generated automatically so cannot be manually edited.
From my reading, typescript supports covariance by default and passing MyRenderer which extends Renderer should have no type errors.
Or am I missing the issue?
TypeScript expects an instance of the class here and not the class itself, therefore throwing the error (see screenshot). Using typeof fixes this.
I've updated the PR so the changes are generated automatically now
previously - taxi types were expecting an instance of the class yet taxi wants the class itself