1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 13:03:18 +00:00
musix-oss/node_modules/iso8601-duration/index.d.ts
2020-03-03 22:30:50 +02:00

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;