From c0c534dafb54ebf9f95a5054f576ad99de29f232 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:52:00 -0500 Subject: enable strictNullChecks and fix all related issues (#65) --- src/mojang.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mojang.ts') diff --git a/src/mojang.ts b/src/mojang.ts index e22c8d8..84c8c7d 100644 --- a/src/mojang.ts +++ b/src/mojang.ts @@ -14,9 +14,8 @@ const httpsAgent = new Agent({ interface MojangApiResponse { /** These uuids are already undashed */ - uuid: string - - username: string + uuid: string | null + username: string | null } /** @@ -73,7 +72,7 @@ export async function profileFromUsername(username: string): Promise