Skip to content

fix: noImplicitAny: true#2891

Merged
UziTech merged 7 commits intomarkedjs:masterfrom
UziTech:remove-implicit-any
Aug 10, 2023
Merged

fix: noImplicitAny: true#2891
UziTech merged 7 commits intomarkedjs:masterfrom
UziTech:remove-implicit-any

Conversation

@UziTech
Copy link
Copy Markdown
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
Copy Markdown

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
Comment thread lib/marked.cjs Outdated
Comment thread src/Hooks.ts Outdated
Comment thread src/Instance.ts Outdated
Comment thread src/Instance.ts Outdated
Comment thread src/Instance.ts Outdated
Comment thread src/Instance.ts Outdated
Comment thread src/Instance.ts Outdated
Comment thread src/MarkedOptions.ts
preprocess: (markdown: string) => string,
postprocess: (html: string | undefined) => string | undefined,
preprocess: (markdown: string) => string | Promise<string>,
postprocess: (html: string) => string | Promise<string>,
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

UziTech commented Aug 6, 2023

@calculuschild any issue with merging this PR?

Copy link
Copy Markdown
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
@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))
Logiclayer1111 pushed a commit to Logiclayer1111/marked that referenced this pull request Apr 20, 2026
## [7.0.2](markedjs/marked@v7.0.1...v7.0.2) (2023-08-10)

### Bug Fixes

* fix sourcemaps and circular dependencies ([#2929](markedjs/marked#2929)) ([f6133cf](markedjs/marked@f6133cf))
* noImplicitAny: true ([#2891](markedjs/marked#2891)) ([f4d0739](markedjs/marked@f4d0739))
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