Skip to content

Commit

Permalink
Revert marking plural properties deprecated in TypeScript
Browse files Browse the repository at this point in the history
This undoes part of 75fcdb5 because the
property names in property bags are not supposed to be marked deprecated.
They are just ignored.

Follow up to #325.
  • Loading branch information
ptomato committed Oct 16, 2020
1 parent f79816c commit da7ae85
Showing 1 changed file with 3 additions and 43 deletions.
46 changes: 3 additions & 43 deletions polyfill/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,29 +227,9 @@ export namespace Temporal {
milliseconds?: number;
microseconds?: number;
nanoseconds?: number;
/** @deprecated */ year?: number;
/** @deprecated */ month?: number;
/** @deprecated */ day?: number;
/** @deprecated */ hour?: number;
/** @deprecated */ minute?: number;
/** @deprecated */ second?: number;
/** @deprecated */ millisecond?: number;
/** @deprecated */ microsecond?: number;
/** @deprecated */ nanosecond?: number;
};

type DurationFields = {
years: number;
months: number;
weeks: number;
days: number;
hours: number;
minutes: number;
seconds: number;
milliseconds: number;
microseconds: number;
nanoseconds: number;
};
type DurationFields = Required<DurationLike>;

/**
*
Expand Down Expand Up @@ -493,9 +473,6 @@ export namespace Temporal {
year?: number;
month?: number;
day?: number;
/** @deprecated */ years?: number;
/** @deprecated */ months?: number;
/** @deprecated */ days?: number;
calendar?: CalendarProtocol | string;
};

Expand Down Expand Up @@ -579,15 +556,6 @@ export namespace Temporal {
microsecond?: number;
nanosecond?: number;
calendar?: CalendarProtocol | string;
/** @deprecated */ years?: number;
/** @deprecated */ months?: number;
/** @deprecated */ days?: number;
/** @deprecated */ hours?: number;
/** @deprecated */ minutes?: number;
/** @deprecated */ seconds?: number;
/** @deprecated */ milliseconds?: number;
/** @deprecated */ microseconds?: number;
/** @deprecated */ nanoseconds?: number;
};

type DateTimeFields = {
Expand Down Expand Up @@ -723,8 +691,7 @@ export namespace Temporal {
export type MonthDayLike = {
month?: number;
day?: number;
/** @deprecated */ months?: number;
/** @deprecated */ days?: number;
calendar?: CalendarProtocol | string;
};

type MonthDayFields = {
Expand Down Expand Up @@ -763,12 +730,6 @@ export namespace Temporal {
millisecond?: number;
microsecond?: number;
nanosecond?: number;
/** @deprecated */ hours?: number;
/** @deprecated */ minutes?: number;
/** @deprecated */ seconds?: number;
/** @deprecated */ milliseconds?: number;
/** @deprecated */ microseconds?: number;
/** @deprecated */ nanoseconds?: number;
};

type TimeFields = {
Expand Down Expand Up @@ -904,8 +865,7 @@ export namespace Temporal {
era?: string | undefined;
year?: number;
month?: number;
/** @deprecated */ years?: number;
/** @deprecated */ months?: number;
calendar?: CalendarProtocol | string;
};

type YearMonthFields = {
Expand Down

0 comments on commit da7ae85

Please sign in to comment.