[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
This commit is contained in:
Richard Jedlička
2017-10-11 15:43:05 -07:00
committed by Wesley Wigham
parent 75f77248e4
commit 7031c869bb
+2 -2
View File
@@ -1,6 +1,6 @@
interface EJSONableCustomType {
clone(): EJSONableCustomType;
equals(other: Object): boolean;
clone?(): EJSONableCustomType;
equals?(other: Object): boolean;
toJSONValue(): JSONable;
typeName(): string;
}