UNPKG

ng-cornerstone

Version:

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.git

33 lines (32 loc) 1.26 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { FunctionProp, SafeAny } from '../config/types'; export declare function toBoolean(value: boolean | string): boolean; export declare function toNumber(value: number | string): number; export declare function toNumber<D>(value: number | string, fallback: D): number | D; export declare function toCssPixel(value: number | string): string; /** * Get the function-property type's value */ export declare function valueFunctionProp<T>(prop: FunctionProp<T> | T, ...args: SafeAny[]): T; /** * Input decorator that handle a prop to do get/set automatically with toBoolean * * Why not using @InputBoolean alone without @Input? AOT needs @Input to be visible * * @howToUse * ``` * @Input() @InputBoolean() visible: boolean = false; * * // Act as below: * // @Input() * // get visible() { return this.__visible; } * // set visible(value) { this.__visible = value; } * // __visible = false; * ``` */ export declare function InputBoolean(): SafeAny; export declare function InputCssPixel(): SafeAny; export declare function InputNumber(fallbackValue?: SafeAny): SafeAny;