1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/technical-features/application/legacy-extensions/src/bundled-extension.ts
Sebastian Malton 82bf67cc9e chore: Simplify extension dependency injection
- Has better typing
- Removes use of unnusual unique symbol
- Fix welcome banner tests
    - Update associated snapshots
- Start converting custom column tests to use ApplicationBuilder
- Remove old and unnused RecursiveTreeView
- Introduce new TreeView for use in CatalogMenu to fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-06 09:05:27 -04:00

19 lines
611 B
TypeScript

import { getInjectionToken } from "@ogre-tools/injectable";
import type {
BundledLensExtensionConstructor,
BundledLensExtensionManifest,
} from "./lens-extension";
export type BundledExtensionResult = BundledLensExtensionConstructor | null;
export interface BundledExtension {
readonly manifest: BundledLensExtensionManifest;
main: () => BundledExtensionResult | Promise<BundledExtensionResult>;
renderer: () => BundledExtensionResult | Promise<BundledExtensionResult>;
}
export const bundledExtensionInjectionToken =
getInjectionToken<BundledExtension>({
id: "bundled-extension-path",
});