Skip to content

Commit

Permalink
Fix passing manifest on plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Sep 27, 2024
1 parent 4c2704e commit 031403f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/deco.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
export * from "../runtime/fresh/plugin.ts";
import plugin from "../runtime/fresh/plugin.ts";
import type { AppManifest } from "@deco/deco";
import { default as plugin, type Options } from "../runtime/fresh/plugin.ts";

/**
* backwards compatibility with old fresh+deco plugin
*/
export const plugins = (...opt: Parameters<typeof plugin>) => {
export const plugins = <TManifest extends AppManifest = AppManifest>(
opts: Options<TManifest>,
) => {
return [
plugin(...opt),
plugin(opts),
];
};

Expand Down

0 comments on commit 031403f

Please sign in to comment.