export function verifyString(data: string, error?: typeof Error, errorMessage?: string, allowEmpty?: boolean): string;
Verifies the provided data is a string, otherwise throws provided error.
Parameters
string data:
The string resolvable to resolve
optional
error?: typeof ErrorThe Error constructor to instantiate. Defaults to Error
optional
errorMessage?: stringThe error message to throw with. Defaults to "Expected string, got instead."
optional
allowEmpty?: booleanWhether an empty string should be allowed