• Creates a public command. A public command can be discovered by application and other plugins.

    Type Parameters

    • F extends AnyFunction<any[], any> = (() => void)

    Parameters

    • info: Object
    • Optional handler: F

      Optional default handler.

    Returns Command<F>

  • Creates a local command. Local commands can be used within the plugin but the application and other plugins will not see them.

    Type Parameters

    • F extends AnyFunction<any[], any> = (() => void)

    Parameters

    • id: string

      ID of the command. It should be unique across the application. It should follow the <plugin>.<name> pattern.

      For example: just-web.showCommandPalette The resulting command function will also have this as the name.

    • Optional handler: F

    Returns Command<F>

Generated using TypeDoc