Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayron013 committed Apr 27, 2021
1 parent 9eb1cd6 commit 8c399ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8c399ec

Please sign in to comment.