]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed up invalid typings for LocaleSelector.
authorGrzegorz Pabian <greg.pabian@gmail.com>
Thu, 5 Jan 2017 15:47:09 +0000 (15:47 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 2 Mar 2017 09:25:31 +0000 (11:25 +0200)
moment.d.ts

index 2234ea7318f542a8609c32040765dc536294883f..b9a621a579f842b0b3565e9b2bff5632517e0490 100644 (file)
@@ -392,7 +392,7 @@ declare namespace moment {
   type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
   type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | void; // null | undefined
   type DurationInputArg2 = unitOfTime.DurationConstructor;
-  type LocaleSpecifier = string | Moment | Duration | string[];
+  type LocaleSpecifier = string | Moment | Duration | string[] | boolean;
 
   interface MomentCreationData {
     input: string;