mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Make some interface extend from Record utility (#3303)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user