ant-design/components/theme/util/calc/calculator.ts

12 lines
382 B
TypeScript
Raw Normal View History

export default abstract class AbstractCalculator {
abstract add(num: number | string | AbstractCalculator): this;
abstract sub(num: number | string | AbstractCalculator): this;
abstract mul(num: number | string | AbstractCalculator): this;
abstract div(num: number | string | AbstractCalculator): this;
abstract equal(options?: { unit?: boolean }): string | number;
}