Skip to content

Instantly share code, notes, and snippets.

@wiesys
Last active October 23, 2021 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiesys/e297257621f5beb2c3431b37a3720052 to your computer and use it in GitHub Desktop.
Save wiesys/e297257621f5beb2c3431b37a3720052 to your computer and use it in GitHub Desktop.
Tree typings
type Warning = {
Id: string;
Type: string;
Content: string;
Active: boolean;
};
type Genus = {
Id: string;
Latin: string;
Danish: string;
};
type Name = {
Id: string;
Latin: string;
Danish: string;
};
type Tree = {
Id: string;
Genus: Genus;
Name: Name;
Plant_Year: number;
Operating_Organization: string;
Is_Protected: boolean;
District: string;
Location: {
lat: string;
lng: string;
};
Warnings: Array<Warning>;
};
type Data = Array<Tree>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment