Skip to content

Commit

Permalink
Merge pull request #8 from Readify/output-types
Browse files Browse the repository at this point in the history
Fixed some declared Output types and verified the rest.
  • Loading branch information
kjacobsen authored Feb 5, 2020
2 parents b96f7e2 + da0d3ef commit 25cf672
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion functions/Connect-.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

function Connect- {
[OutputType([String])]
[OutputType([Boolean])]
[CmdletBinding()]
Param (

Expand Down
2 changes: 1 addition & 1 deletion functions/Get-Comment.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

function Get-Comment {

[OutputType([String])]
[OutputType([PSCustomObject])]
[CmdletBinding()]
Param (

Expand Down
2 changes: 1 addition & 1 deletion functions/Search-.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function Search- {
.EXAMPLE
Search-Zendesk -Query 'type:user [email protected]'
#>
[OutputType([String])]
[OutputType([PSCustomObject])]
[CmdletBinding()]
Param (
# Zendesk Search Query
Expand Down
2 changes: 1 addition & 1 deletion functions/Test-Connection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Test-Connection {
Search-Zendesk @searchParams
}
#>
[OutputType([Bool])]
[OutputType([Boolean])]
[CmdletBinding()]
Param(
# Zendesk Connection Context from `Get-ZendeskConnection`
Expand Down
1 change: 0 additions & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
- Tests
- OAuth Support
- Parameter Validation
- OutputType
- Attachment Uploads
- Usage Compatability Check
- PS Edition/Version Compatability Check
Expand Down

0 comments on commit 25cf672

Please sign in to comment.