add: Output type to functions

This commit is contained in:
DrIOS
2024-06-09 10:36:37 -05:00
parent 5a0475c253
commit b9de0638bb
17 changed files with 101 additions and 42 deletions

View File

@@ -1,4 +1,6 @@
function Get-MostCommonWord {
[CmdletBinding()]
[OutputType([string])]
param (
[Parameter(Mandatory = $true)]
[string[]]$InputStrings
@@ -19,4 +21,4 @@ function Get-MostCommonWord {
} else {
return $null
}
}
}