diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..35aabda --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +// .vscode/settings.json +{ + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/bun.lockb b/bun.lockb index c57d696..3323050 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6b321c0..6f92e91 100644 --- a/package.json +++ b/package.json @@ -14,21 +14,19 @@ "typecheck": "bunx --bun tsc" }, "devDependencies": { + "@kitajs/ts-html-plugin": "^1.0.1", "bun-types": "latest", "concurrently": "^8.2.1", "drizzle-kit": "^0.19.13", + "typescript": "^5.2.2", "unocss": "^0.55.7" }, - "peerDependencies": { - "typescript": "^5.0.0" - }, "dependencies": { "@bogeychan/elysia-logger": "0.0.9", "@elysiajs/cron": "^0.6.0", "@elysiajs/static": "^0.6.0", "@elysiajs/swagger": "^0.6.2", "@kitajs/html": "^2.1.2", - "@kitajs/ts-html-plugin": "^1.0.1", "@libsql/client": "0.3.5-pre.4", "@lucia-auth/adapter-sqlite": "^2.0.0", "@t3-oss/env-core": "^0.6.1", diff --git a/src/components/todos.tsx b/src/components/todos.tsx index d40a266..5433ce9 100644 --- a/src/components/todos.tsx +++ b/src/components/todos.tsx @@ -3,7 +3,7 @@ import type { Todo } from "../db/schema/todos"; export function TodoItem({ content, completed, id }: Todo) { return (
-

{content}

+

{content}

+
{todos.map((todo) => ( ))} diff --git a/tsconfig.json b/tsconfig.json index 1d2eab6..4a9b749 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "noEmit": true, "composite": true, "strict": true, - "noUncheckedIndexedAccess": true, + // "noUncheckedIndexedAccess": true, "downlevelIteration": true, "skipLibCheck": true, "jsx": "react",