-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix: noImplicitAny: true #2891
fix: noImplicitAny: true #2891
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
preprocess: (markdown: string) => string, | ||
postprocess: (html: string | undefined) => string | undefined, | ||
preprocess: (markdown: string) => string | Promise<string>, | ||
postprocess: (html: string) => string | Promise<string>, |
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.
Can we remove Promise<string>
from preprocess/postprocess now?
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.
The hooks can return promises if async option is true
https://github.com/markedjs/marked/blob/master/src/Instance.ts#L326
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.
Hmm, then we might need to overload the types in order to avoid all the as string
in src/Instance.ts
@calculuschild any issue with merging this PR? |
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.
This is fine.
Description
Remove
noImplicitAny: false
from tsconfigContributor
Committer
In most cases, this should be a different person than the contributor.