PrivateFunctions/Get-Puppeteer_OpenAsyncFunctionDeclaration.ps1
<#
.SYNOPSIS This function returns the JS code snippet for opening a new async function declaration. #> function Get-Puppeteer_OpenAsyncFunctionDeclaration { [CmdletBinding(PositionalBinding=$true)] [OutputType([String])] param ( # The name of the function to declare [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [String]$functionName ) return "async function $($functionName)() {" } |