defineMode<T>
Unofficial
Registers a new editor mode.
Import:
import type { defineMode } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
function defineMode(name: string, modeFactory: Cm5ModeFactory<T>): voidParameters:
| Parameter | Type | Description |
|---|---|---|
name | string | The mode name. |
modeFactory | Cm5ModeFactory<T> | The factory function that creates the mode. |
Returns: void