From 8c399ecdd735ad1fb8bb5e6066f5721881c2aa09 Mon Sep 17 00:00:00 2001 From: Angel Date: Tue, 27 Apr 2021 02:15:11 -0400 Subject: [PATCH] minor fix --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7961cb0..d40b145 100644 --- a/src/index.ts +++ b/src/index.ts @@ -111,8 +111,8 @@ export default class LexoRank { return String.fromCharCode(char.charCodeAt(0) - 1); } - static between(lexBefore: Lex | null, lexAfter: Lex): LexoRank; - static between(lexBefore: Lex, lexAfter: Lex | null): LexoRank; + static between(lexBefore: Lex | null | undefined, lexAfter: Lex): LexoRank; + static between(lexBefore: Lex, lexAfter: Lex | null | undefined): LexoRank; static between(lexBefore: Lex, lexAfter: Lex): LexoRank { if (!lexBefore && !lexAfter) { throw 'Only one argument may be null';