Require export on all vscode public api types

Adds new eslint rule which requires `export` be used for public api types

The `export` is not actually needed, but our existing typing files largely use it. This makes it consistent
This commit is contained in:
Matt Bierner
2025-01-08 11:40:36 -08:00
parent 1329d03879
commit 68ec60529e
9 changed files with 63 additions and 30 deletions

View File

@@ -14,20 +14,20 @@ declare module 'vscode' {
Indexed = 2
}
interface VariablesResult {
export interface VariablesResult {
variable: Variable;
hasNamedChildren: boolean;
indexedChildrenCount: number;
}
interface NotebookVariableProvider {
export interface NotebookVariableProvider {
onDidChangeVariables: Event<NotebookDocument>;
/** When parent is undefined, this is requesting global Variables. When a variable is passed, it's requesting child props of that Variable. */
provideVariables(notebook: NotebookDocument, parent: Variable | undefined, kind: NotebookVariablesRequestKind, start: number, token: CancellationToken): AsyncIterable<VariablesResult>;
}
interface Variable {
export interface Variable {
/** The variable's name. */
name: string;