/** * Whether `ctx` is a plugin setup context, the only hook context with `setOptions`. */ export function isSetupContext(ctx: TContext): ctx is Extract { return 'setOptions' in ctx }