Skip to content

types mismatch of .process in sync mode #403

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>>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions