copying options between visualizations

This commit is contained in:
Peter Holmberg
2019-02-21 13:43:36 +01:00
parent 58f194b483
commit 89883c2cf6
5 changed files with 35 additions and 14 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export interface PanelEditorProps<T = any> {
onChange: (options: T) => void;
}
export type PreservePanelOptionsHandler<TOptions> = (pluginId: string, prevOptions: any) => Partial<TOptions>;
export type PreservePanelOptionsHandler<TOptions = any> = (pluginId: string, prevOptions: any) => Partial<TOptions>;
export class ReactPanelPlugin<TOptions = any> {
panel: ComponentClass<PanelProps<TOptions>>;