]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed return type in d.ts file for isDuration.
authorJoeri van Oostveen <j.vanoostveen@afas.nl>
Wed, 15 Jun 2016 10:07:56 +0000 (12:07 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 20 Jun 2016 08:13:53 +0000 (01:13 -0700)
moment.d.ts

index 77c3504f459619cd6321bab59de85ec5c8b08d11..c18a0437233e18bdecfdcff2d9cc4330b984f8af 100644 (file)
@@ -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;