add interface

This commit is contained in:
Peter Maquiran
2024-06-04 16:26:50 +01:00
parent d3c156faeb
commit a981dd151c
@@ -17,11 +17,11 @@ const tableSchema = z.object({
expirationDate: z.any(),
roomType: z.any()
})
export type Table = z.infer<typeof tableSchema>
export type TableRoom = z.infer<typeof tableSchema>
// Database declaration (move this to its own module also)
export const roomDataSource = new Dexie('FriendDatabase') as Dexie & {
room: EntityTable<Table, 'id'>;
room: EntityTable<TableRoom, 'id'>;
};
roomDataSource.version(1).stores({