Skip to content

Commit e1ee1c0

Browse files
committed
Remove todo-typescript changes
1 parent 2f402a4 commit e1ee1c0

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

examples/todo-typescript/.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ node_modules/
99
# Don't ignore example dotenv files.
1010
!.env.example
1111
!.env.*.example
12-
13-
# Headless tests
14-
test-results/

examples/todo-typescript/src/Main.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ img {
2626
max-height: 100px;
2727
}
2828

29-
.logout,
30-
.delete-tasks {
29+
.logout {
3130
margin-top: 1rem;
3231
}
3332

@@ -71,4 +70,4 @@ li {
7170
flex-direction: row;
7271
justify-content: space-between;
7372
align-items: center;
74-
}
73+
}

examples/todo-typescript/src/MainPage.tsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import { getUsername, type AuthUser as User } from "wasp/auth";
22
import { type Task } from "wasp/entities";
33
import { logout } from "wasp/client/auth";
4-
import {
5-
createTask,
6-
updateTask,
7-
deleteTasks,
8-
useQuery,
9-
getTasks,
10-
} from "wasp/client/operations";
4+
import { createTask, updateTask, deleteTasks, useQuery, getTasks } from "wasp/client/operations";
115
import React, { FormEventHandler, FormEvent } from "react";
126
import waspLogo from "./waspLogo.png";
137

@@ -34,7 +28,7 @@ export const MainPage = ({ user }: { user: User }) => {
3428
{tasks && <TasksList tasks={tasks} />}
3529
<div className="buttons">
3630
<button
37-
className="delete-tasks"
31+
className="logout"
3832
onClick={() => void deleteTasks(completed ?? [])}
3933
>
4034
Delete completed

examples/todo-typescript/tsconfig.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"strict": true,
2323
// Allow default imports.
2424
"esModuleInterop": true,
25-
"lib": ["dom", "dom.iterable", "esnext"],
25+
"lib": [
26+
"dom",
27+
"dom.iterable",
28+
"esnext"
29+
],
2630
"skipLibCheck": true,
2731
"allowJs": true,
2832
"typeRoots": [
@@ -32,11 +36,13 @@
3236
"node_modules/@testing-library",
3337
// Specifying type roots overrides the default behavior of looking at the
3438
// node_modules/@types folder so we had to list it explicitly.
35-
// Source 1: https://www.typescriptlang.org/tsconfig#typeRoots
39+
// Source 1: https://www.typescriptlang.org/tsconfig#typeRoots
3640
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3741
"node_modules/@types"
3842
],
3943
"outDir": ".wasp/out/user"
4044
},
41-
"include": ["src"]
45+
"include": [
46+
"src"
47+
]
4248
}

0 commit comments

Comments
 (0)