noImplicitAny: time region manager etc. (#17729)

* Fix errors

* Wrong branch

* minor type fix
This commit is contained in:
Tobias Skarhed
2019-06-25 09:49:31 +02:00
committed by Torkel Ödegaard
parent 75c29566a6
commit 1b17b7893f
5 changed files with 36 additions and 26 deletions
@@ -50,6 +50,7 @@ export interface DateTimeDuration {
export interface DateTime extends Object {
add: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
set: (unit: DurationUnit, amount: DateTimeInput) => void;
diff: (amount: DateTimeInput, unit?: DurationUnit, truncate?: boolean) => number;
endOf: (unitOfTime: DurationUnit) => DateTime;
format: (formatInput?: FormatInput) => string;
@@ -63,9 +64,11 @@ export interface DateTime extends Object {
subtract: (amount?: DateTimeInput, unit?: DurationUnit) => DateTime;
toDate: () => Date;
toISOString: () => string;
isoWeekday: (day?: number | string) => number | string;
valueOf: () => number;
unix: () => number;
utc: () => DateTime;
hour?: () => number;
}
export const setLocale = (language: string) => {