diff --git a/src/App.tsx b/src/App.tsx index 59677a1..f39984e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ -import { createResource, createSignal, For, Show } from "solid-js"; -import { openDatabase, type Entry } from "./data"; +import { createResource, For, Show } from "solid-js"; +import { openDatabase } from "./data"; export default function App() { const [database] = createResource(openDatabase); diff --git a/src/data.ts b/src/data.ts index 3491759..65cb9bc 100644 --- a/src/data.ts +++ b/src/data.ts @@ -1,10 +1,4 @@ -import { - openDB, - type DBSchema, - type IDBPDatabase, - type IDBPTransaction, - type StoreNames, -} from "idb"; +import { openDB, type DBSchema } from "idb"; export type Entry = { weight: number; @@ -17,7 +11,7 @@ interface Schema extends DBSchema { export async function openDatabase() { return await openDB("waight", 1, { - upgrade(database, oldVersion, newVersion, transaction, event) { + upgrade(database, _oldVersion, _newVersion, _transaction, _event) { const store = database.createObjectStore("entries"); store.createIndex("timestamp", "timestamp"); },