-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Misc] Code style: get rid of 'any' types #688
base: main
Are you sure you want to change the base?
[Misc] Code style: get rid of 'any' types #688
Conversation
@@ -20,7 +20,18 @@ | |||
|
|||
import type { Storage } from "./storage"; | |||
|
|||
export interface WikiConfig { | |||
type ConfigObject = { |
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.
If you export something please define which version it was introduced in with the @since
annotation.
An explanation of the type in the tsdoc is also preferable.
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.id = object.id as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.name = object.name as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.source = object.source as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.syntax = object.syntax as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.html = object.html as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.css = object.css as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.js = object.js as any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this.version = object.version as any; |
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.
I'm not sure how this is better than simply definition the type of the object
parameter as any
Jira URL
N/A
Changes
Description
any
typeClarifications
N/A
Screenshots & Video
N/A
Executed Tests
N/A
Expected merging strategy