Module: libs/common/types/GeneralizedRange
Interfaces
Type aliases
GeneralizedRange
Ƭ GeneralizedRange: CharacterRange
| LineRange
A range of characters or lines in a document. This type is used for things like breakpoints and highlights, which can ether be logically applied to characters or entire lines.
For example, in VSCode, it is possible to highlight an entire line, which will cause the highlight to extend the full width of the screen, rather than just the width of the text in the given line.
Defined in
libs/common/types/GeneralizedRange.ts:45
Functions
isLineRange
▸ isLineRange(range
): range is LineRange
Parameters
Name | Type |
---|---|
range | GeneralizedRange |
Returns
range is LineRange
Defined in
libs/common/types/GeneralizedRange.ts:52
toCharacterRange
▸ toCharacterRange(__namedParameters
): CharacterRange
Parameters
Name | Type |
---|---|
__namedParameters | Range |
Returns
Defined in
libs/common/types/GeneralizedRange.ts:60
toLineRange
▸ toLineRange(range
): LineRange
Parameters
Name | Type |
---|---|
range | Range |