From b7e566f9d3d961a09e6c8acbdfffe481959ca088 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Wed, 17 Dec 2025 16:26:21 +0100 Subject: [PATCH] Make some interface extend from Record utility (#3303) --- .../ObsDetailsDefaultMode/IdentificationSheets.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/ObsDetailsDefaultMode/IdentificationSheets.tsx b/src/components/ObsDetailsDefaultMode/IdentificationSheets.tsx index a82a0e0f7..1ddf02757 100644 --- a/src/components/ObsDetailsDefaultMode/IdentificationSheets.tsx +++ b/src/components/ObsDetailsDefaultMode/IdentificationSheets.tsx @@ -29,13 +29,12 @@ const textInputStyle = Platform.OS === "android" } : undefined; -interface Taxon { +interface Taxon extends Record { id: number; ancestor_ids: number[]; - [key: string]: unknown; } -interface Observation { +interface Observation extends Record { uuid?: string; taxon?: Taxon; community_taxon?: Taxon; @@ -43,7 +42,6 @@ interface Observation { user?: { prefers_community_taxa: boolean; }; - [key: string]: unknown; } interface Identification { @@ -153,12 +151,11 @@ const identReducer = ( state: IdentState, action: IdentAction ): IdentState => { } }; -interface RouteParams { +interface RouteParams extends Record { identAt?: string; identTaxonId?: number; identTaxonFromVision?: boolean; uuid?: string; - [key: string]: unknown; } interface Props {