Header menu logo Navs

TemplateSegment Type

A discriminated union that represents the different types of segments that a URL can have

Union cases

Union case Description

ParamSegment(name, tipe)

Full Usage: ParamSegment(name, tipe)

Parameters:

A segment of the URL that is a parameter

name : string
tipe : TypedParam
Example

/users/:id will have the segments [ Plain "users"; ParamSegment ("id", String) ]

Plain string

Full Usage: Plain string

Parameters:
    Item : string

A segment of the URL that is a constant string

Item : string
Example

/users/disable will have the segments [ Plain "users"; Plain "disable" ]

Type something to start searching.