Closed AndrewPrifer closed 3 years ago
would you make a pr for this?
@drcmda sure, for the second solution?
i have no informed opinions about either, pick what you think is best for all.
Alright, I like the second solution better, if there is a language feature for it, let's use it :)
With the
--types
flag, gltfjsx generates code that callsuseGLTF
like this:This is incorrect because
useGLTF
accepts 0 type arguments. The fix is either to modifyuseGLTF
to accept aGLTF
-compatible type argument, or to modify the call to the following: