Last active
October 23, 2021 10:05
-
-
Save wiesys/e297257621f5beb2c3431b37a3720052 to your computer and use it in GitHub Desktop.
Tree typings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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