From 69111ae0bae6a8d76f2673b7976aee289d8ae617 Mon Sep 17 00:00:00 2001 From: murraybauer Date: Fri, 6 May 2016 04:49:28 +1000 Subject: [PATCH] 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 --- twix/twix.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twix/twix.d.ts b/twix/twix.d.ts index 112877036e..01225df06d 100644 --- a/twix/twix.d.ts +++ b/twix/twix.d.ts @@ -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[];