-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to typescript 5 #2345
Changes from all commits
42aeb23
0892a48
caa39fe
aaa93f4
3a4e342
4043c3c
a49a622
801687b
38d742e
1e8bfbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,7 @@ export function createContext<T extends AppContext>( | |
maxAge: 60 * 1000, | ||
signed: true | ||
}, | ||
// Only accepts Middleware<DefaultState, DefaultContext> for some reason, koa is Middleware<DefaultState, AppContext> | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
koa as any | ||
koa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found that this "any" assertion wasn't needed |
||
) | ||
) | ||
const ctx = koa.createContext(req, res) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
"target": "ES2019", | ||
"strict": true, | ||
"allowJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (same change made a few other places)
|
||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": ["./app/*"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same change made in backend)
fixes new rule: Forbidden Implicit Coercions in Relational Operators
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#forbidden-implicit-coercions-in-relational-operators