Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that can load modes.

Hierarchy

  • ModeLoader

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private editor

editor: Editor

Private runtime

runtime: Runtime

The runtime to use to load the mode module.

Methods

initMode

  • initMode(path: string, options?: __type | undefined): Promise<Mode>
  • Load and initialize a mode.

    Parameters

    • path: string

      The path to the mode.

    • Default value options: __type | undefined = {}

      The mode's options.

    Returns Promise<Mode>

    A promise that resolves to the initialized Mode object.

Private loadMode

  • Loads a mode.

    Parameters

    • path: string

      The path to the mode.

    Returns Promise<ModeModule>

    A promise that resolves to the module that holds the mode.

Generated using TypeDoc