Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 25, 2022
1 parent b31c637 commit d65e8ac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/retext-dutch/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {ParseDutch} from 'parse-dutch'

/** @type {import('unified').ParserClass<Root>} */

/** @type {import('unified').Plugin<void[], string, Root>} */
/** @type {import('unified').Plugin<[], string, Root>} */
export default function retextDutch() {
Object.assign(this, {Parser: unherit(ParseDutch)})
}
Expand Down
4 changes: 1 addition & 3 deletions packages/retext-english/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {unherit} from 'unherit'
// @ts-expect-error: untyped.
import {ParseEnglish} from 'parse-english'

/** @type {import('unified').ParserClass<Root>} */

/** @type {import('unified').Plugin<void[], string, Root>} */
/** @type {import('unified').Plugin<[], string, Root>} */
export default function retextEnglish() {
Object.assign(this, {Parser: unherit(ParseEnglish)})
}
Expand Down
4 changes: 1 addition & 3 deletions packages/retext-latin/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {unherit} from 'unherit'
// @ts-expect-error: untyped.
import {ParseLatin} from 'parse-latin'

/** @type {import('unified').ParserClass<Root>} */

/** @type {import('unified').Plugin<void[], string, Root>} */
/** @type {import('unified').Plugin<[], string, Root>} */
export default function retextLatin() {
Object.assign(this, {Parser: unherit(ParseLatin)})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/retext-stringify/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import {toString} from 'nlcst-to-string'

/** @type {import('unified').Plugin<void[], Root, string>} */
/** @type {import('unified').Plugin<[], Root, string>} */
export default function retextStringify() {
Object.assign(this, {Compiler})
}
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function eachParser(name) {

const fp = './packages/retext-' + name + '/index.js'

/** @type {{default: import('unified').Plugin<void[], string, Root>}} */
/** @type {{default: import('unified').Plugin<[], string, Root>}} */
// type-coverage:ignore-next-line
const mod = await import(fp)

Expand Down

0 comments on commit d65e8ac

Please sign in to comment.