(options: {
readonly method: HttpMethod.HttpMethod | "*"
readonly path: PathInput
readonly handler: Effect.Effect<HttpServerResponse.HttpServerResponse, E, R>
readonly uninterruptible?: boolean | undefined
readonly prefix?: Option.Option<string> | string | undefined
})
| 627 | /** |
| 628 | * Extracts the error type produced by a `Route` handler. |
| 629 | * |
| 630 | * @category routes |
| 631 | * @since 4.0.0 |
| 632 | */ |
| 633 | export type Error<R extends Route<any, any>> = R extends Route<infer E, infer _R> ? E : never |
| 634 | |
| 635 | /** |
| 636 | * Extracts the context requirements of a `Route` handler. |
| 637 | * |
| 638 | * @category routes |
| 639 | * @since 4.0.0 |
| 640 | */ |
| 641 | export type Context<T extends Route<any, any>> = T extends Route<infer _E, infer R> ? R : never |
| 642 | } |
| 643 |
no test coverage detected
searching dependent graphs…