rest-vir - v2.2.0
    Preparing search index...

    Type Alias WebSocketDefinitionWithRequiredCustomProps<CustomProps>

    WebSocketDefinitionWithRequiredCustomProps: BaseWebSocketDefinition & CommonRouteDefinitionWithRequiredCustomProps<
        CustomProps,
    >

    Variant of WebSocketDefinition whose customProps field is required and narrowed to the supplied CustomProps generic. Use this from wrapper signatures like defineMyWebSocket<W extends WebSocketDefinitionWithRequiredCustomProps<MyCustomProps>>(...) to force every caller to specify customProps with the expected shape.

    Type Parameters

    • CustomProps extends UnknownObject