Skip to content

Commit

Permalink
Merge branch 'pr_4809' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Apr 24, 2020
2 parents b285b5e + 73316dd commit ba58de9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions moment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ declare namespace moment {

toISOString(): string;
toJSON(): string;

isValid(): boolean;

/**
Expand Down Expand Up @@ -283,7 +283,7 @@ declare namespace moment {

type MomentFormatSpecification = string | MomentBuiltinFormat | (string | MomentBuiltinFormat)[];

namespace unitOfTime {
export namespace unitOfTime {
type Base = (
"year" | "years" | "y" |
"month" | "months" | "M" |
Expand All @@ -300,15 +300,15 @@ declare namespace moment {
type _date = "date" | "dates" | "D";
type DurationConstructor = Base | _quarter | _isoWeek;

type DurationAs = Base;
export type DurationAs = Base;

type StartOf = Base | _quarter | _isoWeek | _date | void; // null
export type StartOf = Base | _quarter | _isoWeek | _date | void; // null

type Diff = Base | _quarter;
export type Diff = Base | _quarter;

type MomentConstructor = Base | _date;
export type MomentConstructor = Base | _date;

type All = Base | _quarter | _isoWeek | _date |
export type All = Base | _quarter | _isoWeek | _date |
"weekYear" | "weekYears" | "gg" |
"isoWeekYear" | "isoWeekYears" | "GG" |
"dayOfYear" | "dayOfYears" | "DDD" |
Expand Down Expand Up @@ -718,16 +718,16 @@ declare namespace moment {

export var defaultFormat: string;
export var defaultFormatUtc: string;
export var HTML5_FMT: {

export var HTML5_FMT: {
DATETIME_LOCAL: string,
DATETIME_LOCAL_SECONDS: string,
DATETIME_LOCAL_MS: string,
DATE: string,
TIME: string,
TIME_SECONDS: string,
TIME_MS: string,
WEEK: string,
DATE: string,
TIME: string,
TIME_SECONDS: string,
TIME_MS: string,
WEEK: string,
MONTH: string
};

Expand Down

0 comments on commit ba58de9

Please sign in to comment.