manifest with view clean up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user