Skip to content

Commit

Permalink
Added types for controlHelper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
the-bay-kay committed Oct 20, 2023
1 parent 0bb95b2 commit 49e1757
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions www/js/types/fileShareTypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ServerData } from './serverData';

export type TimeStampData = ServerData<RawTimelineData>;

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;
};
};

0 comments on commit 49e1757

Please sign in to comment.