From 2b27ecf245c13f580adb40859622955934d82bfb Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 6 Jun 2022 13:00:23 -0700 Subject: [PATCH] Update typing for GetAzureFunction request (#19607) --- extensions/sql-bindings/src/sql-bindings.d.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/extensions/sql-bindings/src/sql-bindings.d.ts b/extensions/sql-bindings/src/sql-bindings.d.ts index dbff04aa1d..61b0910d73 100644 --- a/extensions/sql-bindings/src/sql-bindings.d.ts +++ b/extensions/sql-bindings/src/sql-bindings.d.ts @@ -54,7 +54,7 @@ declare module 'sql-bindings' { * @param connectionInfo (optional) connection info from the user to update the connection string, * if left undefined we prompt the user for the connection info * @returns connection string setting name to be used for the createFunction API - */ + */ promptAndUpdateConnectionStringSetting(projectUri: vscode.Uri | undefined, connectionInfo?: IConnectionInfo): Promise; /** @@ -127,9 +127,21 @@ declare module 'sql-bindings' { */ name: string; /** - * The route of the function if it has an HTTP trigger with a route specified + * The HttpTrigger binding if one is specified + */ + httpTriggerBinding?: HttpTriggerBinding | undefined; + + } + + export interface HttpTriggerBinding { + /** + * The route if specified */ route?: string | undefined; + /** + * The operations (methods) if any are specified + */ + operations?: string[] | undefined; } /**