Skip to content

Commit

Permalink
Fix internal types for TS 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 17, 2022
1 parent dc51075 commit 974f893
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/remark-parse/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

import {fromMarkdown} from 'mdast-util-from-markdown'

/** @type {import('unified').Plugin<[Options?] | void[], string, Root>} */
/**
* @this {import('unified').Processor}
* @type {import('unified').Plugin<[Options?] | void[], string, Root>}
*/
export default function remarkParse(options) {
/** @type {import('unified').ParserFunction<Root>} */
const parser = (doc) => {
Expand Down
5 changes: 4 additions & 1 deletion packages/remark-stringify/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

import {toMarkdown} from 'mdast-util-to-markdown'

/** @type {import('unified').Plugin<[Options]|void[], Node, string>} */
/**
* @this {import('unified').Processor}
* @type {import('unified').Plugin<[Options]|void[], Node, string>}
*/
export default function remarkStringify(options) {
/** @type {import('unified').CompilerFunction<Node, string>} */
const compiler = (tree) => {
Expand Down

0 comments on commit 974f893

Please sign in to comment.