Skip to content

Commit fd79d83

Browse files
committed
Fix building with TypeScript 5.5
We ran into a regression when building unified with TypeScript 5.5. Splitting the overload into 2 separate overloads fixes it.
1 parent 242105b commit fd79d83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,12 @@ export class Processor extends CallableInstance {
10491049
*
10501050
* @overload
10511051
* @param {Plugin<Parameters, Input, Output>} plugin
1052-
* @param {...(Parameters | [boolean])} parameters
1052+
* @param {boolean} parameters
1053+
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
1054+
*
1055+
* @overload
1056+
* @param {Plugin<Parameters, Input, Output>} plugin
1057+
* @param {...Parameters} parameters
10531058
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
10541059
*
10551060
* @param {PluggableList | Plugin | Preset | null | undefined} value

0 commit comments

Comments
 (0)