* Remove stale max-len disablements * Remove stale camelCase & naming-convention disablements * Remove stale ban-ts-comment disablements * Remove stale no-var disablements * Remove stale no-empty-property disablements * Remove stale react rule disablements * Remove stale no-constant-condition disablements * Remove stale no-unused-vars disablements * Remove stale disablements for disabled rules * fixup camelcase * Remove dead code * Tidy code * Tweak oxlint config
29 lines
931 B
TypeScript
29 lines
931 B
TypeScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
// @ts-ignore -- optional interface, will gracefully degrade to `any` if `react-sdk-module-api` isn't installed
|
|
import type { ModuleApi, RuntimeModule } from "@matrix-org/react-sdk-module-api";
|
|
|
|
/**
|
|
* @alpha
|
|
* @deprecated in favour of the new module API
|
|
*/
|
|
export type RuntimeModuleConstructor = new (api: ModuleApi) => RuntimeModule;
|
|
|
|
/**
|
|
* @alpha
|
|
* @deprecated in favour of the new module API
|
|
*/
|
|
export interface LegacyModuleApiExtension {
|
|
/**
|
|
* Register a legacy module based on \@matrix-org/react-sdk-module-api
|
|
* @param LegacyModule - the module class to register
|
|
* @deprecated provided only as a transition path for legacy modules
|
|
*/
|
|
_registerLegacyModule(LegacyModule: RuntimeModuleConstructor): Promise<void>;
|
|
}
|