rest-vir - v1.0.0
    Preparing search index...

    Type Alias ServiceDefinition<ServiceName, EndpointsInit, WebSocketsInit>

    ServiceDefinition: MinimalService<ServiceName> & {
        endpoints: EndpointsInit extends NoParam
            ? {
                [EndpointPath in EndpointPathBase]: Overwrite<
                    EndpointDefinition,
                    { searchParamsShape: any; SearchParamsType: any },
                >
            }
            : {
                [EndpointPath in keyof EndpointsInit]: EndpointPath extends EndpointPathBase
                    ? WithFinalEndpointProps<EndpointsInit[EndpointPath], EndpointPath>
                    : EndpointMustStartWithSlashTypeError
            };
        init: SetRequired<
            ServiceInit<ServiceName, EndpointsInit, WebSocketsInit>,
            "endpoints" | "webSockets",
        >;
        requiredClientOrigin: NonNullable<OriginRequirement>;
        webSockets: WebSocketsInit extends NoParam
            ? {
                [WebSocketPath in EndpointPathBase]: Overwrite<
                    WebSocketDefinition,
                    {
                        protocolsShape: any;
                        ProtocolsType: any;
                        searchParamsShape: any;
                        SearchParamsType: any;
                    },
                >
            }
            : {
                [WebSocketPath in keyof WebSocketsInit]: WebSocketPath extends EndpointPathBase
                    ? WithFinalWebSocketProps<
                        WebSocketsInit[WebSocketPath],
                        WebSocketPath,
                    >
                    : EndpointMustStartWithSlashTypeError
            };
    }

    A fully defined service (without executable endpoint implementations).

    Type Parameters

    Type declaration