@lspriv/wc-plugin-ics
Version:
小程序日历组件订阅插件
26 lines (25 loc) • 813 B
TypeScript
import { type ICalProperty } from './property';
import { ICalDuration } from './duration';
import { ICalTime } from './time';
export type ICalPeriodData = [string, string];
export interface ICalPeriodDict {
start?: ICalTime;
end?: ICalTime;
duration?: ICalDuration;
}
/**
* This class represents the "period" value type, with various calculation
* and manipulation methods.
*/
export declare class ICalPeriod {
start?: ICalTime;
end?: ICalTime;
duration?: ICalDuration;
constructor(data?: ICalPeriodDict);
/**
* The jCal representation of this period type.
*/
toJSON(): ICalPeriodData;
}
export declare const fromData: (data: ICalPeriodDict) => ICalPeriod;
export declare const fromJSON: (data: ICalPeriodData, prop: ICalProperty, lenient: boolean) => ICalPeriod;