Skip to content

Commit

Permalink
🚨 Fix plug type
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Jul 29, 2024
1 parent 7f24907 commit 9dc60ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ export class PluginWithOptions<T> extends Plugin {
}
}

const _plug = (plugger: Plugger): TailwindPlugin =>
interface Plug {
(plugger: Plugger): TailwindPlugin;
with<T>(plugger: PluggerWithOptions<T>): TailwindPluginWithOptions<T>;
}

const _plug: Plug = (plugger: Plugger): TailwindPlugin =>
tailwindPlugin((api: PluginAPI) => {
const plugin = new Plugin(api);
return plugger({ ...api, plugin });
Expand Down

0 comments on commit 9dc60ff

Please sign in to comment.