Bind to every object property?

Hello, when binding to objects from JS, is the best practice to model every property or just the ones you need? For example, I have JWTs coming in from an API. They are objects with two properties: the token (string) and the payload (object). Since the data in the payload is encoded in the token, I don’t think I will need to directly use the payload. Do I need to bind to it in my typing for the JWT?

Thank you!

The practice is to bind to only what you need. Check the JS output to verify it looks good.

Over time, you might find that the bindings become more complete if you need more. If you don’t need more, that works too.


awesome, thank you!!