Skip to content

Commit

Permalink
fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jul 19, 2024
1 parent 7d10f29 commit f6e01b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-tips-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-pagefind": patch
---

fix: correctly switch from `PluginOption` to `Plugin` as the return type.
2 changes: 1 addition & 1 deletion src/plugins/pagefind-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PACKAGE_NAME } from "../internal/constants.js";

/**
* Vite plugin to allow building websites with Pagefind.
* @returns {import('vite').PluginOption}
* @returns {import('vite').Plugin}
*/
export default function build() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/pagefind-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const exec = promisify(exec_callback);

/**
* Vite plugin to allow developing websites with Pagefind.
* @returns {import('vite').PluginOption}
* @returns {import('vite').Plugin}
*/
export default function dev() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/pagefind.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import pagefind_dev from "./pagefind-dev.js";

/**
* Vite plugin to allow developing and building websites with Pagefind.
* @returns {import('vite').PluginOption}
* @returns {Array<import('vite').Plugin>}
*/
export default function pagefind() {
return [pagefind_dev(), pagefind_build()];
Expand Down

0 comments on commit f6e01b7

Please sign in to comment.