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

toHTML Error CustomOutput #30

Open
SrGobi opened this issue Dec 29, 2021 · 1 comment · May be fixed by #40
Open

toHTML Error CustomOutput #30

SrGobi opened this issue Dec 29, 2021 · 1 comment · May be fixed by #40

Comments

@SrGobi
Copy link

SrGobi commented Dec 29, 2021

It seems that the package contains an error in the transcription to TypeScript, I have been investigating and the problem seems to be another package installed in the same simple-markdown@latestversion
Generic type 'Output' requires 1 type argument (s)
document: node_modules/simple-markdown/simple-markdown.d.ts
line: 64

    node: ASTNode,
    state?: OptionalState
) => Result;

Thanks a lot.
image

@SrGobi
Copy link
Author

SrGobi commented Dec 29, 2021

I have tried to solve the problem by adding a result with the following format even though I don't know which one to place because I don't fully understand the system
export function toHTML(source: string, options?: HTMLOptions, customParser?: markdown.Parser, customOutput?: markdown.Output<string>): string;
image
export function toHTML(source: string, options?: HTMLOptions, customParser?: markdown.Parser, customOutput?: markdown.Output<any>): string;

@prokopschield prokopschield linked a pull request Jan 25, 2023 that will close this issue
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 a pull request may close this issue.

1 participant