mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
$arg types
correct/explicit $arg types for consistency
This commit is contained in:
parent
dd31bfcc55
commit
9b1b78100c
@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user