time-calculator-web-component
Version:
A web component for time calculation with expression evaluation
19 lines • 778 B
TypeScript
import { TimeAmount } from './types.js';
export declare class TimeAmountImpl implements TimeAmount {
readonly minutes: number;
constructor(minutes: number);
static fromMinutes(minutes: number): TimeAmountImpl;
static fromHoursAndMinutes(hours: number, minutes: number): TimeAmountImpl;
static fromHColonMM(timeString: string): TimeAmountImpl;
add(other: TimeAmount | number): TimeAmountImpl;
subtract(other: TimeAmount | number): TimeAmountImpl;
multiply(scalar: number): TimeAmountImpl;
divide(scalar: number): TimeAmountImpl;
negate(): TimeAmountImpl;
abs(): TimeAmountImpl;
isNegative(): boolean;
isZero(): boolean;
equals(other: TimeAmount): boolean;
toString(): string;
}
//# sourceMappingURL=time-amount.d.ts.map