Skip to content

Add PSTypeName to all PSCustomObjects #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
plastikfan opened this issue May 2, 2021 · 0 comments
Open

Add PSTypeName to all PSCustomObjects #56

plastikfan opened this issue May 2, 2021 · 0 comments
Assignees
Labels
Refactor Refactor code

Comments

@plastikfan
Copy link
Collaborator

See: Everything you wanted to know about PSCustomObject

And also update function/method parameters that currently take [PSCustomObject] to PSTypeName

eg: "param( [PSTypeName('My.Object')]$Data )".

This adds some type safety to PSCustomObject.

And we can also apply to OutputType for return values.

@plastikfan plastikfan added the Refactor Refactor code label May 2, 2021
@plastikfan plastikfan self-assigned this May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Refactor code
Projects
None yet
Development

No branches or pull requests

1 participant