Skip to content

Commit

Permalink
Fix building with TypeScript 5.5
Browse files Browse the repository at this point in the history
We ran into a regression when building unified with TypeScript 5.5.
Splitting the overload into 2 separate overloads fixes it.
  • Loading branch information
remcohaszing committed Jul 16, 2024
1 parent 242105b commit fd79d83
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,12 @@ export class Processor extends CallableInstance {
*
* @overload
* @param {Plugin<Parameters, Input, Output>} plugin
* @param {...(Parameters | [boolean])} parameters
* @param {boolean} parameters
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
*
* @overload
* @param {Plugin<Parameters, Input, Output>} plugin
* @param {...Parameters} parameters
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
*
* @param {PluggableList | Plugin | Preset | null | undefined} value
Expand Down

0 comments on commit fd79d83

Please sign in to comment.