1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00
musix-oss/node_modules/iso8601-duration/index.d.ts

24 lines
542 B
TypeScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
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;