Skip to content

Commit

Permalink
fix(types): use the same Plugin type as decky-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog authored Jul 8, 2024
1 parent 02556eb commit 0ccebd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ export interface DeckyRequestInit extends RequestInit {
}

export interface Plugin {
title: JSX.Element;
name: string;
version?: string;
icon: JSX.Element;
content?: JSX.Element;
onDismount?(): void;
alwaysRender?: boolean;
titleView?: JSX.Element;
}

export type DefinePluginFn = () => Plugin;

0 comments on commit 0ccebd7

Please sign in to comment.