From d2eab834c22734c2e96e40bc339648e0f4edba75 Mon Sep 17 00:00:00 2001 From: kavin71725 <79274847+kavin71725@users.noreply.github.com> Date: Sat, 6 Aug 2022 23:59:22 +0800 Subject: [PATCH] Update ExchangeWebService.d.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A temporary fix for initializing a Recurrence.XXXPattern() with arguments (overload not compatible) Using Recurrence.XXXPattern() it’s no argument first and set properties later also failed because some properties are read-only. If directly used new XXXPattern(), it indicates that XXXPattern is not a constructor. Any other ways to fix it would also be appropriated. --- typings/ExchangeWebService.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/typings/ExchangeWebService.d.ts b/typings/ExchangeWebService.d.ts index 21baf54b..92e81ee6 100644 --- a/typings/ExchangeWebService.d.ts +++ b/typings/ExchangeWebService.d.ts @@ -3006,17 +3006,17 @@ export interface AutodiscoverRedirectionUrlValidationCallback { NeverEnds(): void; } module Recurrence { - var DailyPattern: new () => DailyPattern; - var DailyRegenerationPattern: new () => DailyRegenerationPattern; + var DailyPattern: new (startDate: DateTime, interval: number) => DailyPattern; + var DailyRegenerationPattern: new (startDate: DateTime, interval: number) => DailyRegenerationPattern; var IntervalPattern: new () => IntervalPattern; - var MonthlyPattern: new () => MonthlyPattern; - var MonthlyRegenerationPattern: new () => MonthlyRegenerationPattern; - var RelativeMonthlyPattern: new () => RelativeMonthlyPattern; - var RelativeYearlyPattern: new () => RelativeYearlyPattern; - var WeeklyPattern: new () => WeeklyPattern; - var WeeklyRegenerationPattern: new () => WeeklyRegenerationPattern; - var YearlyPattern: new () => YearlyPattern; - var YearlyRegenerationPattern: new () => YearlyRegenerationPattern; + var MonthlyPattern: new (startDate: DateTime, interval: number, dayOfMonth: number) => MonthlyPattern; + var MonthlyRegenerationPattern: new (startDate: DateTime, interval: number) => MonthlyRegenerationPattern; + var RelativeMonthlyPattern: new (startDate: DateTime, interval: number, dayOfTheWeek: DayOfTheWeek, dayOfTheWeekIndex: DayOfTheWeekIndex) => RelativeMonthlyPattern; + var RelativeYearlyPattern: new (startDate: DateTime, month: Month, dayOfTheWeek: DayOfTheWeek, dayOfTheWeekIndex: DayOfTheWeekIndex) => RelativeYearlyPattern; + var WeeklyPattern: new (startDate: DateTime, interval: number, daysOfTheWeek: DayOfTheWeek[]) => WeeklyPattern; + var WeeklyRegenerationPattern: new (startDate: DateTime, interval: number) => WeeklyRegenerationPattern; + var YearlyPattern: new (startDate: DateTime, month: Month, dayOfMonth: number) => YearlyPattern; + var YearlyRegenerationPattern: new (startDate: DateTime, interval: number) => YearlyRegenerationPattern; } /** * Represents a recurrence pattern where each occurrence happens a specific number of days after the previous one. @@ -25155,4 +25155,4 @@ export interface xFetchOptions { constructor(); } function ConfigureForOutlook(): void; -} \ No newline at end of file +}