From 10d8c5df33e9a152509879835a0088a8f8767ab4 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Mon, 18 Nov 2024 08:57:45 +0100 Subject: [PATCH] feat: export interfaces returned by registerExtension --- src/extensions.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/extensions.ts b/src/extensions.ts index 54d047b0..e0fd1ea4 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -45,31 +45,31 @@ export function registerLocalApiFactory(_apiFactory: ApiFactory): void { apiFactory = _apiFactory } -interface RegisterExtensionParams { +export interface RegisterExtensionParams { path?: string system?: boolean readmePath?: string changelogPath?: string } -interface RegisterRemoteExtensionParams extends RegisterExtensionParams { +export interface RegisterRemoteExtensionParams extends RegisterExtensionParams { path: string } -interface RegisterExtensionResult { +export interface RegisterExtensionResult { id: string dispose(): Promise whenReady(): Promise isEnabled(): Promise } -interface RegisterRemoteExtensionResult extends RegisterExtensionResult {} +export interface RegisterRemoteExtensionResult extends RegisterExtensionResult {} -interface RegisterLocalExtensionResult extends RegisterExtensionResult { +export interface RegisterLocalExtensionResult extends RegisterExtensionResult { registerFileUrl: (path: string, url: string) => IDisposable } -interface RegisterLocalProcessExtensionResult extends RegisterLocalExtensionResult { +export interface RegisterLocalProcessExtensionResult extends RegisterLocalExtensionResult { getApi(): Promise setAsDefaultApi(): Promise }