Skip to content

Add type inference for PSObject and Hashtable #7230

@powercode

Description

@powercode

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions