epiphany/node_modules/@csstools/css-calc/dist/util/kind-of-number.d.ts
2023-12-09 22:48:07 -08:00

5 lines
556 B
TypeScript

import { CSSToken, TokenDimension, TokenNumber, TokenPercentage } from '@csstools/css-tokenizer';
export declare function isNumeric(x: CSSToken): x is TokenDimension | TokenPercentage | TokenNumber;
export declare function isDimensionOrNumber(x: CSSToken): x is TokenDimension | TokenNumber;
export declare function arrayOfSameNumeric<T extends TokenDimension | TokenPercentage | TokenNumber>(x: Array<CSSToken>): x is Array<T>;
export declare function twoOfSameNumeric<T extends TokenDimension | TokenPercentage | TokenNumber>(x: T, y: CSSToken): y is T;