@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
26 lines (25 loc) • 975 B
TypeScript
import type { ComponentType, LazyExoticComponent } from 'react';
import type React from 'react';
import PluggableElementBase from './PluggableElementBase';
import type { AnyConfigurationSchemaType } from '../configuration';
import type { IAnyModelType, IAnyStateTreeNode } from 'mobx-state-tree';
type WidgetComponentType = LazyExoticComponent<React.FC<any>> | React.FC<any>;
type HeadingComponentType = ComponentType<{
model: IAnyStateTreeNode;
}>;
export default class WidgetType extends PluggableElementBase {
heading?: string;
configSchema: AnyConfigurationSchemaType;
HeadingComponent?: HeadingComponentType;
ReactComponent: WidgetComponentType;
stateModel: IAnyModelType;
constructor(stuff: {
name: string;
heading?: string;
HeadingComponent?: HeadingComponentType;
configSchema: AnyConfigurationSchemaType;
stateModel: IAnyModelType;
ReactComponent: WidgetComponentType;
});
}
export {};