manifest with view clean up

This commit is contained in:
Niels Lyngsø
2023-04-26 14:41:41 +02:00
parent 689d410c72
commit 368ecbba4e
3 changed files with 4 additions and 14 deletions

View File

@@ -208,7 +208,7 @@ export interface ManifestElement<ElementType extends HTMLElement = HTMLElement>
meta?: unknown;
}
export interface ManifestWithView extends ManifestElement {
export interface ManifestWithView<ElementType extends HTMLElement = HTMLElement> extends ManifestElement<ElementType> {
meta: MetaManifestWithView;
}

View File

@@ -1,15 +1,12 @@
import type { ManifestBase, ManifestWithConditions } from '.';
import type { ManifestWithConditions, ManifestWithView, MetaManifestWithView } from '.';
export interface ManifestWorkspaceViewCollection
extends ManifestBase,
extends ManifestWithView,
ManifestWithConditions<ConditionsEditorViewCollection> {
type: 'workspaceViewCollection';
meta: MetaEditorViewCollection;
}
export interface MetaEditorViewCollection {
pathname: string;
label: string;
icon: string;
export interface MetaEditorViewCollection extends MetaManifestWithView {
entityType: string;
repositoryAlias: string;
}

View File

@@ -2,16 +2,9 @@ import type { ManifestWithView } from '.';
export interface ManifestWorkspaceView extends ManifestWithView {
type: 'workspaceView';
meta: MetaWorkspaceView;
conditions: ConditionsWorkspaceView;
}
export interface MetaWorkspaceView {
pathname: string;
label: string;
icon: string;
}
export interface ConditionsWorkspaceView {
workspaces: string[];
}