Files
scriptc/tests/corpus/pick-alias-view-modules/ctx.ts
T
Malte UblandClaude Opus 5.5 312d7be280 See Pick and Omit views of classes through type aliases
A Pick or Omit view of a program class is held as a live class protocol,
and generic methods called through it monomorphize against the class.
Both checks read the view from the type's alias symbol, but a view named
by a type alias (type View = Pick<Registry, "m">) carries the user's
alias instead, so it mapped to a record of erased method fields that no
instance converts to. classViewOf reads the alias declaration and sees
the view through non-generic aliases, alias chains included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 05:37:46 -07:00

3 lines
106 B
TypeScript

import type { Registry } from "./registry.ts";
export interface Ctx { registry: Registry; label: string }