gentics-ui-core
Version:
This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.
7 lines (6 loc) • 389 B
TypeScript
/**
* Components with boolean inputs may receive the value as an actual boolean (if data-bound `[prop]="false"`) or as
* a string representation of a boolean (if passed as a regular attribute `prop="false"`).
* In the latter case, we want to ensure that the string version is correctly coerced to its boolean counterpart.
*/
export declare function coerceToBoolean(val: any): boolean;