sussudio
Version:
An unofficial VS Code Internal API
24 lines (23 loc) • 888 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface INavigator<T> {
current(): T | null;
previous(): T | null;
first(): T | null;
last(): T | null;
next(): T | null;
}
export declare class ArrayNavigator<T> implements INavigator<T> {
private readonly items;
protected start: number;
protected end: number;
protected index: number;
constructor(items: readonly T[], start?: number, end?: number, index?: number);
current(): T | null;
next(): T | null;
previous(): T | null;
first(): T | null;
last(): T | null;
}