From: Danny Vernovsky Date: Tue, 7 Mar 2017 11:57:47 +0000 (+0200) Subject: Moment interface now extends Object to inherit toString() function X-Git-Tag: 2.18.0~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19b313d1c8cf5e2aa4577c9cc548efcffebc787b;p=thirdparty%2Fmoment.git Moment interface now extends Object to inherit toString() function --- diff --git a/moment.d.ts b/moment.d.ts index d3e7e8faa..96cafaac8 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -406,7 +406,7 @@ declare namespace moment { strict?: boolean; } - interface Moment { + interface Moment extends Object{ format(format?: string): string; startOf(unitOfTime: unitOfTime.StartOf): Moment;