Header menu logo Navs

QueryKey Type

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

Union cases

Union case Description

Optional(name, tipe)

Full Usage: Optional(name, tipe)

Parameters:

A query parameter that is optional in the URL

name : string
tipe : TypedParam
Example

/?name means that the URL can have the query parameter "name" Optional("name", String)

Required(reqName, reqTipe)

Full Usage: Required(reqName, reqTipe)

Parameters:

A query parameter that is required in the URL

reqName : string
reqTipe : TypedParam
Example

/?name! means that the URL must have the query parameter "name" Required("name", String)

Instance members

Instance member Description

this.IsOptional

Full Usage: this.IsOptional

Returns: bool
Returns: bool

this.IsRequired

Full Usage: this.IsRequired

Returns: bool
Returns: bool

Type something to start searching.