Make some interface extend from Record utility (#3303)

This commit is contained in:
Johannes Klein
2025-12-17 16:26:21 +01:00
committed by GitHub
parent f0e6cfad30
commit b7e566f9d3

View File

@@ -29,13 +29,12 @@ const textInputStyle = Platform.OS === "android"
} }
: undefined; : undefined;
interface Taxon { interface Taxon extends Record<string, unknown> {
id: number; id: number;
ancestor_ids: number[]; ancestor_ids: number[];
[key: string]: unknown;
} }
interface Observation { interface Observation extends Record<string, unknown> {
uuid?: string; uuid?: string;
taxon?: Taxon; taxon?: Taxon;
community_taxon?: Taxon; community_taxon?: Taxon;
@@ -43,7 +42,6 @@ interface Observation {
user?: { user?: {
prefers_community_taxa: boolean; prefers_community_taxa: boolean;
}; };
[key: string]: unknown;
} }
interface Identification { interface Identification {
@@ -153,12 +151,11 @@ const identReducer = ( state: IdentState, action: IdentAction ): IdentState => {
} }
}; };
interface RouteParams { interface RouteParams extends Record<string, unknown> {
identAt?: string; identAt?: string;
identTaxonId?: number; identTaxonId?: number;
identTaxonFromVision?: boolean; identTaxonFromVision?: boolean;
uuid?: string; uuid?: string;
[key: string]: unknown;
} }
interface Props { interface Props {