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

    Type Alias ServiceInit<ServiceName, EndpointsInit, WebSocketsInit>

    ServiceInit: MinimalService<ServiceName> & {
        endpoints?: IsEqual<EndpointsInit, NoParam> extends true
            ? Record<EndpointPathBase, EndpointInit>
            : {
                [EndpointPath in keyof EndpointsInit]: EndpointPath extends EndpointPathBase
                    ? EndpointsInit[EndpointPath]
                    : EndpointPath extends EndpointMustStartWithSlashTypeError
                        ? never
                        : EndpointMustStartWithSlashTypeError
            };
        requiredClientOrigin: NonNullable<OriginRequirement>;
        webSockets?: IsEqual<WebSocketsInit, NoParam> extends true
            ? Record<EndpointPathBase, WebSocketInit>
            : {
                [WebSocketPath in keyof WebSocketsInit]: WebSocketPath extends EndpointPathBase
                    ? WebSocketsInit[WebSocketPath]
                    : WebSocketPath extends EndpointMustStartWithSlashTypeError
                        ? never
                        : EndpointMustStartWithSlashTypeError
            };
    }

    Init for a service. This is used as an input to defineService.

    Type Parameters