[@types/three] Understanding interface changes #69506
-
This is mostly just for my education. My project has a problem upgrading to three v0.164 basically because we had this in our code:
However if I look at the library documentation for FontLoader I'm just wondering if it is normal to have a more restrictive interface here than in the base library? I was very confused about what was going on, until I looked at |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for the discussion about "three", some useful links for everyone: Pinging the DT module owners: @joshuaellis, @Methuselah96. |
Beta Was this translation helpful? Give feedback.
-
Hey @EdwardMoyse thanks for raising this issue!
In short, yes. The documentation doesn't always fully spell out the types of The issue that you're having is actually that some of your glyphs don't have the Let me know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
Hey @EdwardMoyse thanks for raising this issue!
In short, yes. The documentation doesn't always fully spell out the types of
Object
in cases like this, but the TypeScript types are a bit more fleshed out for better type-safety.The issue that you're having is actually that some of …