diff --git a/src/literal.ts b/src/literal.ts index a05c7ee9d..b67862b5d 100644 --- a/src/literal.ts +++ b/src/literal.ts @@ -61,7 +61,7 @@ export default class Literal extends Node implements TFLiteral { * Gets whether two literals are the same * @param other The other statement */ - equals (other: Term | undefined | null): boolean { + equals (other: Term | null | undefined): boolean { if (!other) { return false } diff --git a/src/tf-types.ts b/src/tf-types.ts index ec29e4529..ded9ada87 100644 --- a/src/tf-types.ts +++ b/src/tf-types.ts @@ -20,7 +20,7 @@ export interface Term { * * Note that the task force spec only allows comparison with other terms */ - equals (other: Term | undefined | null): boolean + equals (other: Term | null | undefined): boolean } /**