prefer-named-callback-domain
Name literal-union domains used by callbacks in exported contracts.
Why
An inline callback domain hides a reusable vocabulary at the point where callers and implementations must agree.
Fix
Extract the literal union to a named type and use that type in the callback parameter.
Examples
export interface Options { done?: (boundary: "seeded" | "queued") => void;}export type Boundary = "seeded" | "queued";export interface Options { done?: (boundary: Boundary) => void;}