init
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import Plugin from '../index';
|
||||
|
||||
declare module "*.module.css";
|
||||
declare module "*.module.scss";
|
||||
|
||||
declare global {
|
||||
const __PLUGIN_DEV__: boolean;
|
||||
const __PLUGIN_COMPONENTS_HOST__: string | null;
|
||||
|
||||
interface Window {
|
||||
plugins: Record<string, Plugin | unknown>;
|
||||
basename: string;
|
||||
desktopAPI?: any;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { GlobalState } from 'loop-plugin-sdk/loop/types/store';
|
||||
import { ActionType } from '../store/reducers';
|
||||
|
||||
export type PluginStore = {
|
||||
// Add your store state here
|
||||
}
|
||||
|
||||
export type GlobalStatePlugin = GlobalState & {
|
||||
[name: string]: {
|
||||
pluginState: PluginStore
|
||||
}
|
||||
}
|
||||
|
||||
export type GetStateType = () => GlobalStatePlugin
|
||||
|
||||
export type DispatchFunc = (action: ActionType) => any;
|
||||
@@ -0,0 +1 @@
|
||||
// trackEvent: (event: Telemetry.Event, source: Telemetry.Source, props?: Record<string, string>) => void,
|
||||
Reference in New Issue
Block a user