spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / hooks / past-users / provided / provided-next.ts
14 lines · 366 BRaw
1import type { TargetTier } from 'claude-code'
2
3/**
4 * What the shared hook needs of `next` on those events: the call, and the
5 * continuation past the user tier.
6 */
7export type ProvidedNext<E, R> = {
8 (e: E): Promise<R>
9
10 /**
11 * Continues the dispatch at `tier`, the links between skipped (Next's).
12 */
13 readonly to: (e: E, tier: TargetTier) => Promise<R>
14}