Skip to content

types mismatch of .process in sync mode #403

@chawyehsu

Description

@chawyehsu

jsdoc:

   * @returns {Object<{html: String, tree: PostHTMLTree}>} - Sync Mode
   * @returns {Promise<{html: String, tree: PostHTMLTree}>} - Async Mode (default)

but d.ts:

process(html: string, options?: Options): Promise<Result<TMessage>>

Results in that even sync is set to true, the return type is still Promise<Result<TMessage>>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions