Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add type inference for PSObject and Hashtable #7230

Copy link
Copy link
@powercode

Description

@powercode
Issue body actions

Constructs like

@{
    Name = "Staffan",
    Size = 3
}

is quite easy to infer types from, and the same is true for the conversion expression to

[pscustomobject] @{
    Name = "Staffan",
    Size = 3
}

The same mechanisms that is needed to support synthetic PSTypeNames could also be used to provide type inference for Select-Object -Property and the Group and Value propererties of the output of Group-Object

None of this is supported as of 6.1-preview 3.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.