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

24 lines
542 B
TypeScript
Raw Normal View History

2019-05-30 09:06:47 +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;