@angular/cdk
Version:
Angular Material Component Development Kit
21 lines (20 loc) • 714 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Type describing the allowed values for a number input
* @docs-private
*/
export declare type NumberInput = string | number | null | undefined;
/** Coerces a data-bound value (typically a string) to a number. */
export declare function coerceNumberProperty(value: any): number;
export declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
/**
* Whether the provided value is considered a number.
* @docs-private
*/
export declare function _isNumberValue(value: any): boolean;