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

12 lines
354 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(): string | number;
}