MCPcopy Create free account
hub / github.com/Effect-TS/effect / isRouter

Function isRouter

packages/platform/src/internal/httpRouter.ts:42–42  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

40export const RouteContext = Context.GenericTag<Router.RouteContext>("@effect/platform/HttpRouter/RouteContext")
41
42const isRouter = (u: unknown): u is Router.HttpRouter<unknown, unknown> => Predicate.hasProperty(u, TypeId)
43
44/** @internal */
45export const params = Effect.map(RouteContext, (_) => _.params)

Callers 1

routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected