// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import type {Store, Action} from 'redux'; import type {GlobalState} from '@mattermost/types/store'; import manifest from '@/manifest'; import type {PluginRegistry} from '@/types/mattermost-webapp'; export default class Plugin { // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function public async initialize(registry: PluginRegistry, store: Store>>) { // @see https://developers.mattermost.com/extend/plugins/webapp/reference/ } } declare global { interface Window { registerPlugin(pluginId: string, plugin: Plugin): void; } } window.registerPlugin(manifest.id, new Plugin());