tuil
ReferencePackages@mwillbanks/tuil-editorAPI

EditorDecoration

interface exported by @mwillbanks/tuil-editor.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-editor.

export interface EditorDecoration {
  readonly id: string;
  readonly range: EditorRange;
  readonly kind: "highlight" | "underline" | "line" | "gutter" | "widget";
  readonly className?: string;
  readonly data?: unknown;
}

Members

MemberTypeRequiredDescriptionRelated types
idstringYesThe id member uses the string contract.
rangeEditorRangeYesThe range member uses the EditorRange contract.EditorRange
kind"highlight" | "underline" | "line" | "gutter" | "widget"YesThe kind member uses the "highlight" | "underline" | "line" | "gutter" | "widget" contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
dataunknownNoThe data member uses the unknown contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page