Type alias ContextConditionInfoJson

ContextConditionInfoJson: {
    method?: Method;
    path?: string;
    path2?: string;
}

JSON representation of ContextCondition's info (for collecting info about conditions and squashing them together)

Type declaration

  • Optional method?: Method

    Method that is matched

    Example

    "GET"
    
  • Optional path?: string

    Path that is matched

    Example

    "/api/:id"
    
  • Optional path2?: string

    RegExp path that is matched

    Example

    "/api/([\\w-]+)"
    

Example

{ path: "/api/:id", method: "GET" }

Example

{ path2: "/api/([\\w-]+)", method: "GET" }

Generated using TypeDoc