@farthershore/backend/reflect exports
Every public export and declaration from @farthershore/backend/reflect.
Every public export and declaration from @farthershore/backend/reflect.
Import from @farthershore/backend/reflect. This reference is extracted from the published declaration surface for version 0.21.2. Read the collection's guides for workflows, prerequisites and failure handling.
Public export ReflectOptions.
Declaration source: packages/backend/dist/types/reflect/index.d.ts#L7.
export interface ReflectOptions {
framework?: "express";
}
Public export ReflectResult.
Declaration source: packages/backend/dist/types/reflect/index.d.ts#L2.
export interface ReflectResult {
routes: ReflectedRoute__a5f4bc3646ed[];
/** Count of sub-mounted routes that couldn't be reflected (Express-5 mount). */
unreflectable: number;
}
Reflect the routes an Express app serves into the canonical `ReflectedRoute[]`.
Deduped, HEAD-suppressed, canonical paths (`:id`→`{id}`).
Declaration source: packages/backend/dist/types/reflect/index.d.ts#L16.
export declare function reflectRoutes(app: unknown, opts?: ReflectOptions): ReflectedRoute__a5f4bc3646ed[];
Reflect with diagnostics. Use `reflectRoutes` for just the canonical list.
Declaration source: packages/backend/dist/types/reflect/index.d.ts#L11.
export declare function reflectRoutesDetailed(app: unknown, _opts?: ReflectOptions): ReflectResult;
These declarations explain types reachable from the public exports above. They are source evidence, not supported package imports. Suffixed names are documentation identifiers that preserve distinct lexical bindings. Standard-library and third-party types (for example Promise, React and Zod) remain external boundaries; their implementation declarations are not expanded here.
Declaration source: packages/backend/dist/types/reflect/route-canon.d.ts#L2.
export interface ReflectedRoute__a5f4bc3646ed {
method: string;
path: string;
}