From 63dfc45dc47fe05b1a1d4bed3e2a7b75359efbe4 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Tue, 10 May 2022 00:11:16 +0100 Subject: [PATCH] fix: remove nullable import processing info messages --- common/src/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/types.ts b/common/src/types.ts index fb459a334..e2ac50339 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -1235,7 +1235,7 @@ export type ImportTypes = FileUploadImportTypes | IRImportTypes | APIImportTypes export interface ImportProcessInfoKTDataNotFound { success: false; type: "KTDataNotFound"; - message: string | null; + message: string; content: { data: unknown; context: unknown; // @TODO Type these properly. @@ -1246,7 +1246,7 @@ export interface ImportProcessInfoKTDataNotFound { export interface ImportProcessInfoOrphanExists { success: false; type: "OrphanExists"; - message: string | null; + message: string; content: { orphanID: string; }; @@ -1255,14 +1255,14 @@ export interface ImportProcessInfoOrphanExists { export interface ImportProcessInfoInvalidDatapoint { success: false; type: "InvalidDatapoint"; - message: string | null; + message: string; content: Record; } export interface ImportProcessInfoScoreImported { success: true; type: "ScoreImported"; - message: string | null; + message: string; content: { score: ScoreDocument; }; @@ -1271,7 +1271,7 @@ export interface ImportProcessInfoScoreImported export interface ImportProcessInfoInternalError { success: false; type: "InternalError"; - message: string | null; + message: string; content: Record; }