add: Output type to functions
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user