Skip to content

Commit

Permalink
assign explicit numeric values to plugin enum types
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Aug 20, 2024
1 parent 91794ae commit f88f108
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/packages/plugins/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,14 @@ export function usePluginComponent(name: string, ctx?: unknown) {
* - `Plot` - **deprecated** - A plot that can be added as a panel
*/
export enum PluginComponentType {
Plot,
Panel,
Component,
Plot = 1,
Panel = 2,
Component = 3,

/**
* DO NOT CHANGE THE VALUES OF THESE ENUMS for backward compatibility.
* Changing these values WILL break existing plugins.
*/
}

type PluginActivator = (props: any) => boolean;
Expand Down

0 comments on commit f88f108

Please sign in to comment.