Union & Intersection should return a Twix object (#9210)

Union & Intersection functions currently return a string type, this should be a Twix object.

See docs: http://isaaccambron.com/twix.js/docs.html
This commit is contained in:
murraybauer
2016-05-06 03:49:28 +09:00
committed by Masahiro Wakame
parent f748ed9ab5
commit 69111ae0ba
+2 -2
View File
@@ -104,8 +104,8 @@ declare namespace moment {
overlaps(other: Twix): boolean;
engulfs(other: Twix): boolean;
equals(other: Twix): boolean;
union(other: Twix): string;
intersection(other: Twix): string;
union(other: Twix): Twix;
intersection(other: Twix): Twix;
xor(other: Twix): Twix[];
difference(other: Twix): Twix[];