From 49e1757809780eff193adf552f992532e8b4cee3 Mon Sep 17 00:00:00 2001 From: Katie Rischpater <98350084+the-bay-kay@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:56:21 -0700 Subject: [PATCH] Added types for `controlHelper.ts` --- www/js/types/fileShareTypes.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 www/js/types/fileShareTypes.ts diff --git a/www/js/types/fileShareTypes.ts b/www/js/types/fileShareTypes.ts new file mode 100644 index 000000000..89481624d --- /dev/null +++ b/www/js/types/fileShareTypes.ts @@ -0,0 +1,22 @@ +import { ServerData } from './serverData'; + +export type TimeStampData = ServerData; + +export type RawTimelineData = { + name: string, + ts: number, + reading: number, +}; + +export interface FsWindow extends Window { + requestFileSystem: ( + type: number, + size: number, + successCallback: (fs: any) => void, + errorCallback?: (error: any) => void + ) => void; + LocalFileSystem: { + TEMPORARY: number; + PERSISTENT: number; + }; +};