From 4bb9a2078769c082dc822e3ae654f7be3a59c59a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 11 Jan 2021 18:53:34 +0100 Subject: [PATCH] Fix incomplete Config interface in index.d.ts Haven't looked at this in a while. :) --- src/index.d.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index b928d06..20ac94d 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -2,8 +2,12 @@ interface Config { api: { baseUrl: string; + fetchOptions: object; }; endDateTime: Date; + filters: { + minAccuracy: number | null, + }; ignorePingLocation: boolean; locale: string; map: { @@ -54,11 +58,16 @@ interface Config { url: string; }; onLocationChange: { + fitView: boolean; reloadHistory: boolean; }; primaryColor: Color; - selectedUser: User| null; - selectedDevice: Device| null; + router: { + basePath: string; + }; + selectedUser: User | null; + selectedDevice: Device | null; + showDistanceTravelled: boolean; startDateTime: Date; verbose: boolean; } @@ -72,8 +81,8 @@ interface State { devices: { User: Device[] }; lastLocations: OTLocation[]; locationHistory: LocationHistory; - selectedUser: User| null; - selectedDevice: Device| null; + selectedUser: User | null; + selectedDevice: Device | null; startDateTime: string; endDateTime: string; map: {