chore: small refactor to move the handlers out into an extension point

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-19 17:09:53 +02:00
parent a82cbab3c4
commit 1fbd77fb56
10 changed files with 144 additions and 96 deletions
+6 -6
View File
@@ -230,10 +230,10 @@ export interface ScaffolderApi {
dryRun?(options: ScaffolderDryRunOptions): Promise<ScaffolderDryRunResponse>;
autocomplete(
token: string,
provider: string,
resource: string,
params?: Record<string, string>,
): Promise<string[]>;
autocomplete?(options: {
token: string;
provider: string;
resource: string;
context?: Record<string, string>;
}): Promise<{ results: { title: string }[] }>;
}