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

    Type Alias CommonRouteDefinition

    CommonRouteDefinition: { customProps?: UnknownObject } & BaseCommonRouteDefinition

    Properties shared between all route definitions (Endpoints and WebSockets). customProps is optional and untyped. Use CommonRouteDefinitionWithRequiredCustomProps (and its EndpointDefinitionWithRequiredCustomProps / WebSocketDefinitionWithRequiredCustomProps descendants) when a wrapper needs to both narrow customProps's type and require its presence.

    Type Declaration

    • OptionalcustomProps?: UnknownObject

      Custom props that can be attached to this route.