Skip to content

Commit

Permalink
[bugfix] (TypeScript) allow update of a single relativeTime handler
Browse files Browse the repository at this point in the history
  • Loading branch information
shivijais authored and marwahaha committed Jan 19, 2019
1 parent 91550f8 commit ba125e7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions moment.d.ts
Expand Up @@ -79,20 +79,20 @@ declare namespace moment {
type RelativeTimeFuturePastVal = string | ((relTime: string) => string);

interface RelativeTimeSpec {
future: RelativeTimeFuturePastVal;
past: RelativeTimeFuturePastVal;
s: RelativeTimeSpecVal;
ss: RelativeTimeSpecVal;
m: RelativeTimeSpecVal;
mm: RelativeTimeSpecVal;
h: RelativeTimeSpecVal;
hh: RelativeTimeSpecVal;
d: RelativeTimeSpecVal;
dd: RelativeTimeSpecVal;
M: RelativeTimeSpecVal;
MM: RelativeTimeSpecVal;
y: RelativeTimeSpecVal;
yy: RelativeTimeSpecVal;
future?: RelativeTimeFuturePastVal;
past?: RelativeTimeFuturePastVal;
s?: RelativeTimeSpecVal;
ss?: RelativeTimeSpecVal;
m?: RelativeTimeSpecVal;
mm?: RelativeTimeSpecVal;
h?: RelativeTimeSpecVal;
hh?: RelativeTimeSpecVal;
d?: RelativeTimeSpecVal;
dd?: RelativeTimeSpecVal;
M?: RelativeTimeSpecVal;
MM?: RelativeTimeSpecVal;
y?: RelativeTimeSpecVal;
yy?: RelativeTimeSpecVal;
}

interface LongDateFormatSpec {
Expand Down

0 comments on commit ba125e7

Please sign in to comment.