@gettoor/core / requirePlaceholders
Function: requirePlaceholders()
requirePlaceholders(
text:string,requiredPlaceholders:string[]):void
Validates that the required placeholders are present in the text.
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | The text to validate the placeholders in. |
requiredPlaceholders | string[] | The required placeholders to validate. |
Returns
void
Throws
If a required placeholder is missing.