Skip to content

Commit

Permalink
Fix export of remark options type
Browse files Browse the repository at this point in the history
Related to electron/hubdown#19.

Closes GH-432.

Reviewed-by: Zeke Sikelianos <zeke@sikelianos.com>
Reviewed-by: Vlad Hashimoto <hashimoto.stream@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
ChristianMurphy authored and wooorm committed Aug 1, 2019
1 parent 795d8d5 commit d282fef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/remark/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import unified = require('unified')
import remarkParse = require('remark-parse')
import remarkStringify = require('remark-stringify')

type RemarkOptions = remarkParse.RemarkParseOptions &
remarkStringify.RemarkStringifyOptions
declare namespace remark {
type RemarkOptions = remarkParse.RemarkParseOptions &
remarkStringify.RemarkStringifyOptions
}

declare function remark<
P extends Partial<RemarkOptions> = Partial<RemarkOptions>
P extends Partial<remark.RemarkOptions> = Partial<remark.RemarkOptions>
>(): unified.Processor<P>

export = remark

0 comments on commit d282fef

Please sign in to comment.