Coercion
Last updated
Was this helpful?
Last updated
Was this helpful?
Structure does type coercion based on the declared , let's break it into 3 categories:
Structure never coerces the following scenarios:
value is undefined
;
value is null
when nullable
option is enabled;
value is already of the declared type (except for arrays, we'll talk more about this soon).