Variables.ps1 -type

Hi,
I have noticed that inside the file variables.ps1 -type are specified for bool and PSCredential but not for string shuldent it also be specified for string? It works but is string a valid -type? Just making sure that I’m not running in to any kind of issue in the future.

Product: PowerShell Universal
Version: 2.9.2

@adam ?

Created a GitHub issue for it.

-Type defaults to string so that’s why it isn’t including it. Honestly, I just left that parameter in for backwards compatibility. It’s not really necessary since we can figure out the type based on what value you are specifying. In the future, the admin console won’t use the -Type parameter and it will just be a noop to ensure we don’t break any scripts.