mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
24 lines
542 B
TypeScript
24 lines
542 B
TypeScript
export interface Duration {
|
|
years?: number;
|
|
months?: number;
|
|
days?: number;
|
|
hours?: number;
|
|
minutes?: number;
|
|
seconds?: number;
|
|
weeks?: number;
|
|
}
|
|
|
|
export const pattern: RegExp;
|
|
export function parse(durationString: string): Duration;
|
|
export function end(duration: Duration, startDate?: Date): Date;
|
|
export function toSeconds(duration: Duration, startDate?: Date): number;
|
|
|
|
declare const _default: {
|
|
end: typeof end;
|
|
toSeconds: typeof toSeconds;
|
|
pattern: typeof pattern;
|
|
parse: typeof parse;
|
|
};
|
|
|
|
export default _default;
|