Skip to content

Commit d885306

Browse files
tsconfig.json を更新する #21
1 parent 6e5c837 commit d885306

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cSpell.words": [
33
"instanceof",
44
"onfocus",
5-
"sveltejs"
5+
"sveltejs",
6+
"sveltekit"
67
]
78
}

src/routes/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PageServerLoad } from "./$types";
22

3-
export const load: PageServerLoad = async (event) => {
3+
export const load: PageServerLoad = async () => {
44
// console.log(event)
55
}

src/routes/login/+page.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ export const actions: Actions = {
3434
})
3535

3636
new CookiesManager(cookies).setSessionId(auth_token.token);
37+
38+
return { success: true }
3739
},
3840
}

tsconfig.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,27 @@
88
"resolveJsonModule": true,
99
"skipLibCheck": true,
1010
"sourceMap": true,
11-
"strict": true
11+
"strict": true,
12+
// "alwaysStrict": true,
13+
// "strictBindCallApply": true,
14+
// "strictFunctionTypes": true,
15+
// "strictNullChecks": true,
16+
// "strictPropertyInitialization": true,
17+
// "useUnknownInCatchVariables": true,
18+
19+
"allowUnreachableCode": false,
20+
"exactOptionalPropertyTypes": true,
21+
"noImplicitAny": true,
22+
"noImplicitOverride": true,
23+
"noImplicitReturns": true,
24+
"noImplicitThis": true,
25+
"noFallthroughCasesInSwitch": true,
26+
"noUncheckedIndexedAccess": true,
27+
28+
"lib": ["ES2021.String"],
29+
"module": "es2022",
30+
"moduleResolution": "node",
31+
"downlevelIteration": true
1232
}
1333
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
1434
//

0 commit comments

Comments
 (0)