From 7031c869bb0d219864cdede602b2d4b2284c695e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Jedli=C4=8Dka?= Date: Thu, 12 Oct 2017 00:43:05 +0200 Subject: [PATCH] [meteor] EJSONableCustomType shloud have `clone` and `equal` method optional (#20494) According to meteor docs a custom type registered to EJSON is allowed to omit the `clone` and `equals` methods. See https://docs.meteor.com/api/ejson.html#EJSON-addType --- types/meteor/ejson.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/meteor/ejson.d.ts b/types/meteor/ejson.d.ts index a6294fb8be..3ea090a7d2 100644 --- a/types/meteor/ejson.d.ts +++ b/types/meteor/ejson.d.ts @@ -1,6 +1,6 @@ interface EJSONableCustomType { - clone(): EJSONableCustomType; - equals(other: Object): boolean; + clone?(): EJSONableCustomType; + equals?(other: Object): boolean; toJSONValue(): JSONable; typeName(): string; }