Skip to content

Commit

Permalink
fix: unbreak definePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed May 24, 2024
1 parent 2277be3 commit 19e9225
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@decky/api",
"version": "1.0.1",
"version": "1.0.2",
"description": "Library for interacting with Decky Loader.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ export const executeInTab: (
export const injectCssIntoTab: (tab: string, style: string) => string = api.injectCssIntoTab;
export const removeCssFromTab: (tab: string, style: string) => void = api.removeCssFromTab;

export declare const definePlugin: (fn: DefinePluginFn) => DefinePluginFn;
export const definePlugin = (fn: DefinePluginFn): DefinePluginFn => {
return (...args) => {
// TODO: Maybe wrap this
return fn(...args);
};
};

0 comments on commit 19e9225

Please sign in to comment.