UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

18 lines (17 loc) 914 B
/** * ToggleInspectorCommand - Hint for opening the project Inspector tab * * The Inspector is a UI surface owned by `ProjectEditor`/`App` * (ProjectEditorMode.inspector); there is no global toggle on * `Project` or `CreatorTools` that can flip it from outside the * React tree. This command emits a hint pointing the user at the * Inspector tab so they can open it manually. */ import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand"; import { ToolCommandBase } from "../IToolCommand"; import type { IToolCommandContext } from "../IToolCommandContext"; export declare class ToggleInspectorCommand extends ToolCommandBase { readonly metadata: IToolCommandMetadata; execute(context: IToolCommandContext, _args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>; } export declare const toggleInspectorCommand: ToggleInspectorCommand;