Merge pull request #5089 from Tyriar/tyriar/dts

Remove src dts files and correct exports
This commit is contained in:
Daniel Imms
2024-07-05 08:20:03 -07:00
committed by GitHub
14 changed files with 40 additions and 30 deletions
@@ -129,7 +129,7 @@ export interface ILinkifier2 extends IDisposable {
readonly currentLink: ILinkWithState | undefined;
}
interface ILink {
export interface ILink {
range: IBufferRange;
text: string;
decorations?: ILinkDecorations;
@@ -139,17 +139,17 @@ interface ILink {
dispose?(): void;
}
interface ILinkDecorations {
export interface ILinkDecorations {
pointerCursor: boolean;
underline: boolean;
}
interface IBufferRange {
export interface IBufferRange {
start: IBufferCellPosition;
end: IBufferCellPosition;
}
interface IBufferCellPosition {
export interface IBufferCellPosition {
x: number;
y: number;
}
+1 -1
View File
@@ -5,7 +5,7 @@
import { assert } from 'chai';
import { InputHandler } from 'common/InputHandler';
import { IBufferLine, IAttributeData, IColorEvent, ColorIndex, ColorRequestType, SpecialColorIndex } from 'common/Types';
import { IBufferLine, IAttributeData, IColorEvent, ColorRequestType, SpecialColorIndex } from 'common/Types';
import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
import { CellData } from 'common/buffer/CellData';
import { Attributes, BgFlags, UnderlineStyle } from 'common/buffer/Constants';
+1 -1
View File
@@ -3456,6 +3456,6 @@ class DirtyRowTracker implements IDirtyRowTracker {
}
}
function isValidColorIndex(value: number): value is ColorIndex {
export function isValidColorIndex(value: number): value is ColorIndex {
return 0 <= value && value < 256;
}
@@ -425,8 +425,8 @@ type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] exte
: Enumerate<N, [...Acc, Acc['length']]>;
type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
type ColorIndex = IntRange<0, 256>; // number from 0 to 255
type AllColorIndex = ColorIndex | SpecialColorIndex;
export type ColorIndex = IntRange<0, 256>; // number from 0 to 255
export type AllColorIndex = ColorIndex | SpecialColorIndex;
export const enum SpecialColorIndex {
FOREGROUND = 256,
BACKGROUND = 257,