-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
37 lines (36 loc) · 941 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export interface IQuake {
id: number
eventDate: Date | string
longitude?: number
latitude?: number
magnitude: number
magnitudeType?: string
location: string
depth: number
rms?: number
erh?: number
erz?: number
gap?: number
eaeventId?: number
crustModelId?: number
eventTypeId?: number
eventType?: string
magnitudeDescription?: string | null
formattedDate?: string | null
depthDescription?: string | null
refId?: number
province?: string | null
district?: string | null
typeName?: string | null
typeNameEng?: string | null
magnitudeName?: string | null
magnitudeNameEng?: string | null
timeName?: string | null
timeNameEng?: string | null
momentTensor?: string | null
distanceInformation?: string | null
bulletins?: string | null
moments?: string | null
amplitudes?: string | null
}
export type PIQuake = Pick<IQuake, 'id' | 'eventDate' | 'depth' | 'magnitude' | 'location'>