mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 16:19:15 +08:00
bacaad0262
* chore: calc support no unit * test: add test case * test: add test case
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
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;
|
|
}
|