Function: embedPropsError()
ts
function embedPropsError(kind, props): string | null;Why props are not valid for kind, or null when they are. Missing optional fields are fine; unknown fields, wrong types and values out of range are not.
Parameters
| Parameter | Type |
|---|---|
kind | EmbedKind |
props | unknown |
Returns
string | null