a typescript type to which the url parameter is converted to
data type's name, for example int
. This is the key that is present in route's meta before ':'
Parses value from the url
value as found in the url. Might be a single string (if the parameter is present once)
or an array of strings (if the argument is present multiple times)
It might be also null (or string of nulls), if the argument does not have
a value (...?strict&strict&strict
)
the default value previously parsed via parseDefault
Parse default value from the configuration. For example, if the configuration is int:1
,
the datatype is int
and the default value 1
. This function takes the default value
and returns the javascript value (of type T)
the default value to be parsed
Either the default value or a function producing the default value (for modifiable types, such as empty array - so that it stays empty whenever default value is passed)
Serializes the value to string, array of string, null or undefined.
javascript value
value that will be put to url
undefined
if the parameter should be removed from url (for example, is equal to the default value)null
if the parameter should be put to url without a value (for example ?strict)string
param=string
will be put to url querystring[]
param=string[0]¶m=string[1]...
will be put to url queryGenerated using TypeDoc
DataType - converter for values in URL.
Converts string value from url into javascript representation (for example, a number) and vice versa