(options: {
readonly name: Name
readonly path: PathSegment
readonly method: Method
readonly pathSchema: Option.Option<Schema.Schema<Path, unknown, R>>
readonly urlParamsSchema: Option.Option<Schema.Schema<UrlParams, unknown, R>>
readonly payloadSchema: Option.Option<Schema.Schema<Payload, unknown, R>>
readonly headersSchema: Option.Option<Schema.Schema<Headers, unknown, R>>
readonly successSchema: Schema.Schema<Success, unknown, R>
readonly errorSchema: Schema.Schema<Error, unknown, RE>
readonly annotations: Context.Context<never>
readonly middlewares: ReadonlySet<HttpApiMiddleware.TagClassAny>
})
| 828 | } |
| 829 | |
| 830 | const makeProto = < |
| 831 | Name extends string, |
| 832 | Method extends HttpMethod, |
| 833 | Path, |
| 834 | UrlParams, |
| 835 | Payload, |
| 836 | Headers, |
| 837 | Success, |
| 838 | Error, |
| 839 | R, |
| 840 | RE |
| 841 | >(options: { |
| 842 | readonly name: Name |
| 843 | readonly path: PathSegment |
| 844 | readonly method: Method |
| 845 | readonly pathSchema: Option.Option<Schema.Schema<Path, unknown, R>> |
| 846 | readonly urlParamsSchema: Option.Option<Schema.Schema<UrlParams, unknown, R>> |
| 847 | readonly payloadSchema: Option.Option<Schema.Schema<Payload, unknown, R>> |
| 848 | readonly headersSchema: Option.Option<Schema.Schema<Headers, unknown, R>> |
| 849 | readonly successSchema: Schema.Schema<Success, unknown, R> |
| 850 | readonly errorSchema: Schema.Schema<Error, unknown, RE> |
| 851 | readonly annotations: Context.Context<never> |
| 852 | readonly middlewares: ReadonlySet<HttpApiMiddleware.TagClassAny> |
| 853 | }): HttpApiEndpoint<Name, Method, Path, Payload, Headers, Success, Error, R, RE> => |
| 854 | Object.assign(Object.create(Proto), options) |
| 855 | |
| 856 | /** |
| 857 | * @since 1.0.0 |
no test coverage detected