From 0807737d069136bbb2b12a888957983e6326dd49 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 6 Feb 2024 11:31:47 -0500 Subject: [PATCH 1/2] add errors to Category type --- src/types/onyx/PolicyCategory.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types/onyx/PolicyCategory.ts b/src/types/onyx/PolicyCategory.ts index 03d5877bc5b5..7beb97da9334 100644 --- a/src/types/onyx/PolicyCategory.ts +++ b/src/types/onyx/PolicyCategory.ts @@ -1,3 +1,5 @@ +import type * as OnyxCommon from './OnyxCommon'; + type PolicyCategory = { /** Name of a category */ name: string; @@ -17,6 +19,8 @@ type PolicyCategory = { /** The external accounting service that this category comes from */ origin: string; + + errors?: OnyxCommon.Errors; }; type PolicyCategories = Record; From 17b0fc79ff4237c042ef8713c728300e016017cf Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 6 Feb 2024 11:34:45 -0500 Subject: [PATCH 2/2] add comment --- src/types/onyx/PolicyCategory.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/onyx/PolicyCategory.ts b/src/types/onyx/PolicyCategory.ts index 7beb97da9334..4bc926e21419 100644 --- a/src/types/onyx/PolicyCategory.ts +++ b/src/types/onyx/PolicyCategory.ts @@ -20,6 +20,7 @@ type PolicyCategory = { /** The external accounting service that this category comes from */ origin: string; + /** A list of errors keyed by microtime */ errors?: OnyxCommon.Errors; };