@katze/ngx-input-default-value
Version:
A decorator that set default values to your component inputs and properties
9 lines (8 loc) • 433 B
TypeScript
/**
* Sets a given default value to the decorated property when his value is "null" or "undefined".
* In case the type of the decorated property is "Array" or "Object" it will do assignment recursively for all properties or cells.
*
* @param {T} defaultValue - A default value to use for the decorated property.
* @return {PropertyDecorator}
*/
export declare function InputDefaultValue<T>(defaultValue: T): PropertyDecorator;