mirror of
https://github.com/zap-proto/zip.git
synced 2026-10-19 15:38:57 +00:00
A host that re-exports the type writes `type Router = *zip.App` and hands a Router to every plugin. That is the same type, but it arrives as types.Alias, so matching the shape directly saw neither an App nor a Group and the op's prefix could not be resolved — which refuses the whole document rather than filing one path wrongly. Unalias at each place a type is matched by shape, including the In and Out inferred from a handler. A group is also read when var names it, not only :=. The prefix belongs to the Group call; the syntax that binds the result does not change it. Co-authored-by: Hanzo Dev <[email protected]>