From: Joeri van Oostveen Date: Wed, 15 Jun 2016 10:07:56 +0000 (+0200) Subject: Fixed return type in d.ts file for isDuration. X-Git-Tag: 2.14.0~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2af5a1e76bd0de4a29911ebc0f582e96240264bf;p=thirdparty%2Fmoment.git Fixed return type in d.ts file for isDuration. --- diff --git a/moment.d.ts b/moment.d.ts index 77c3504f4..c18a04372 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -450,7 +450,7 @@ declare namespace moment { export function isMoment(m: any): m is Moment; export function isDate(m: any): m is Date; export function isDuration(): boolean; - export function isDuration(d: any): m is Duration; + export function isDuration(d: any): d is Duration; // Deprecated in 2.8.0. export function lang(language?: string): string;