That seems reasonable, esp. if you’ve not used either/both of them before. There is a degree of headache in embedding the JS, so just don’t postpone writing the bindings to the point where you’re causing yourself needless pain.
The only times I would do that are if I’m planning on publishing the bindings, or if I’m trying to have a deep understanding of the library itself, so probably not.
I usually look at the typescript defs, though it’s also useful to have a scratch project that uses the library, too, in order to see what the types are actually doing once you use the code. Don’t ignore the docs though.