$arg types

correct/explicit $arg types for consistency
This commit is contained in:
pblivingston 2025-12-01 20:46:34 -05:00
parent dd31bfcc55
commit 9b1b78100c
2 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ class Device : IRemote {
return Write-Warning ("ERROR: $($this.identifier()).wdm is write only")
} `
{
param($arg)
param([string]$arg)
return $this.Setter('wdm', $arg)
}
)
@ -35,7 +35,7 @@ class Device : IRemote {
return Write-Warning ("ERROR: $($this.identifier()).ks is write only")
} `
{
param($arg)
param([string]$arg)
return $this.Setter('ks', $arg)
}
)
@ -45,7 +45,7 @@ class Device : IRemote {
return Write-Warning ("ERROR: $($this.identifier()).mme is write only")
} `
{
param($arg)
param([string]$arg)
return $this.Setter('mme', $arg)
}
)

View File

@ -7,7 +7,7 @@ function AddBoolMembers () {
# Define getter
$Signatures['Getter'] = "[bool]`$this.Getter('{0}')" -f $param
# Define setter
$Signatures['Setter'] = "param ( [Single]`$arg )`n`$this.Setter('{0}', `$arg)" `
$Signatures['Setter'] = "param ( [bool]`$arg )`n`$this.Setter('{0}', `$arg)" `
-f $param
Addmember
@ -39,7 +39,7 @@ function AddIntMembers () {
# Define getter
$Signatures['Getter'] = "[Int]`$this.Getter('{0}')" -f $param
# Define setter
$Signatures['Setter'] = "param ( [Single]`$arg )`n`$this.Setter('{0}', `$arg)" `
$Signatures['Setter'] = "param ( [Int]`$arg )`n`$this.Setter('{0}', `$arg)" `
-f $param
Addmember