Skip to content
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

Merged
merged 7 commits into from
Aug 10, 2023
Merged

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Jul 29, 2023

Description

Remove noImplicitAny: false from tsconfig

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link

vercel bot commented Jul 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2023 5:13am

@UziTech UziTech mentioned this pull request Jul 30, 2023
5 tasks
lib/marked.cjs Outdated Show resolved Hide resolved
src/Hooks.ts Outdated Show resolved Hide resolved
src/Instance.ts Outdated Show resolved Hide resolved
src/Instance.ts Outdated Show resolved Hide resolved
src/Instance.ts Outdated Show resolved Hide resolved
src/Instance.ts Outdated Show resolved Hide resolved
src/Instance.ts Outdated Show resolved Hide resolved
preprocess: (markdown: string) => string,
postprocess: (html: string | undefined) => string | undefined,
preprocess: (markdown: string) => string | Promise<string>,
postprocess: (html: string) => string | Promise<string>,
Copy link
Member

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?

Copy link
Member Author

@UziTech UziTech Aug 2, 2023

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

Copy link
Member

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

@UziTech
Copy link
Member Author

UziTech commented Aug 6, 2023

@calculuschild any issue with merging this PR?

Copy link
Contributor

@calculuschild calculuschild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

@UziTech UziTech merged commit ff1602c into markedjs:master Aug 10, 2023
10 checks passed
@UziTech UziTech deleted the remove-implicit-any branch August 10, 2023 05:33
github-actions bot pushed a commit that referenced this pull request Aug 10, 2023
## [7.0.2](v7.0.1...v7.0.2) (2023-08-10)

### Bug Fixes

* fix sourcemaps and circular dependencies ([#2929](#2929)) ([eb4ce21](eb4ce21))
* noImplicitAny: true ([#2891](#2891)) ([ff1602c](ff1602c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants