@metreeca/qest - v0.10.0
    Preparing search index...

    Type Alias Name<K>

    Name: K extends keyof Selection
        ? never
        : K extends Binding ? K extends `${infer I}=${string}` ? I : K : K

    Projects a Instance property key to its output name.

    Computes the property name an input key K maps to in the projected result shape:

    • drops Selection constraint and pagination keys, collapsing them to never
    • extracts the Identifier portion from computed Binding keys (name=expression) — the substring before the first =
    • passes plain Identifier keys through unchanged

    Drives Instance's key rewriting in the object branch when projecting a template-shaped object into its result shape.

    Type Parameters

    • K

      The input property key to rewrite

    type A = Name<"name">;                          // "name"          (plain identifier)
    type B = Name<"vendorName=vendor.name">; // "vendorName" (path binding)
    type C = Name<"releaseYear=year:releaseDate">; // "releaseYear" (transform binding)
    type D = Name<"<price">; // never (Selection constraint)
    type E = Name<"@">; // never (pagination key)