design-angular-kit
Version:
Un toolkit Angular conforme alle linee guida di design per i servizi web della PA
15 lines (14 loc) • 442 B
TypeScript
export type BooleanInput = 'false' | 'true' | boolean | undefined;
/**
* Transforms a value (typically a string) to a boolean.
* Intended to be used as a transform function of an input.
*
* @usageNotes
* ```typescript
* @Input({ transform: booleanAttribute }) status?: boolean;
* ```
* @param {BooleanInput} value Value to be transformed.
*
* @publicApi
*/
export declare function inputToBoolean(value: BooleanInput): boolean;