Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 379 Bytes
import Dexie from 'dexie';
export class EarthquakeDb extends Dexie {
earthquakes: Dexie.Table<Earthquake, string>;
constructor() {
super('Earthquake');
this.version(1).stores({
earthquakes: 'id,mag,time'
});
}
}
export interface Earthquake {
id: string;
time: number;
place: string;
mag: number;
depth: number;
latLng: [number, number];
}
You can’t perform that action at this time.