import { ISubscriptionContext } from "vscode-azureextensionui" ; import { BindingSettingValue } from "../../funcConfig/function" ; import { IBindingSetting } from "../../templates/IBindingTemplate" ; import { IFunctionTemplate } from "../../templates/IFunctionTemplate" ; import { IProjectWizardContext } from "../createNewProject/IProjectWizardContext" ; export interface IFunctionWizardContext extends Partial < ISubscriptionContext > , IProjectWizardContext { functionTemplate ? : IFunctionTemplate ; functionName ? : string ; } export function setBindingSetting ( context , setting , value ) { context [ setting . name . toLowerCase ( ) ] = value ; } export function getBindingSetting ( context , setting ) { const value = < BindingSettingValue > context [ setting . name . toLowerCase ( ) ] ; return value === undefined && setting . required ? '' : value ; }