TypeshadeTextSpan
On this page

TypeshadeTextSpan

Interface in Editor

UTF-16 source span used to map Typeshade information back into an editor.

import type { TypeshadeTextSpan } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

interface TypeshadeTextSpan {
readonly start: number;
readonly length: number;
}

Instance properties

startread only number

UTF-16 offset where the span begins.

lengthread only number

Length of the span, in UTF-16 code units.

Source

src/language-service.ts, line 34, at commit 26de7be8

Edit this page Report a problem