Skip to content

Commit 974f893

Browse files
committedNov 17, 2022
Fix internal types for TS 4.9
1 parent dc51075 commit 974f893

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎packages/remark-parse/lib/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

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

8-
/** @type {import('unified').Plugin<[Options?] | void[], string, Root>} */
8+
/**
9+
* @this {import('unified').Processor}
10+
* @type {import('unified').Plugin<[Options?] | void[], string, Root>}
11+
*/
912
export default function remarkParse(options) {
1013
/** @type {import('unified').ParserFunction<Root>} */
1114
const parser = (doc) => {

‎packages/remark-stringify/lib/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

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

9-
/** @type {import('unified').Plugin<[Options]|void[], Node, string>} */
9+
/**
10+
* @this {import('unified').Processor}
11+
* @type {import('unified').Plugin<[Options]|void[], Node, string>}
12+
*/
1013
export default function remarkStringify(options) {
1114
/** @type {import('unified').CompilerFunction<Node, string>} */
1215
const compiler = (tree) => {

0 commit comments

Comments
 (0)
Please sign in to comment.