Skip to content

requirePeer

function requirePeer(name, subpath): never;

Defined in: src/internal/peer.ts:11

Throw a clear, actionable error for a missing optional peer. The message names the package to install (what the user needs) and the kit subpath that asked for it.

Parameter Type
name string
subpath string

never