Open gunhaxxor opened 2 years ago
I am using Angular and i am experiencing a similar problem caused by this interface.
The Document declaration makes templateRefs ( ie: <div #ref>
I don't know how to fix this for all use cases but my own fix for now will just be to get my own copy of the d.ts and remove the Document interface for now.
I might be misunderstanding something. But. To me, it seems like the aframe types simply replaces the normal typings of the
queryselector
functions attached todocument
. Its on these lines:https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e9be8ea047c2ffd95a8116ee99cca7f027d650cc/types/aframe/index.d.ts#L487-L492
My understanding is that queryselector is now only expected to return an
a-entity
, not a normal (html)Element which is the original return type. The normal typings for the queryselector is this:Preferably, aframe should extend this typing rather than replace it.
I get the following error in vscode: Curiously, I get no error from terminal when compiling though...