mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
3.5 KiB
3.5 KiB
fishesAndFoxes
This method has partially inferred params
Parameters
withDefault
This method has a type in the description and a default in the code
Parameters
xnumber=(default 2)
Foo
This is foo's documentation
method
The method
Parameters
xnumber Param to method
Address6
Represents an IPv6 address
This tests our support of optional parameters
Parameters
addressstring An IPv6 address stringgroupsnumber= How many octets to parsethird?number A third argumentfooArray= to properly be parsed
Examples
var address = new Address6('2001::/32');
addThem
This function returns the number one.
Parameters
GeoJSONSource
Create a GeoJSON data source instance given an options object
This tests our support of nested parameters
Parameters
optionsObject= optional optionsoptions.data(Object|string) A GeoJSON data object or URL to it. The latter is preferable in case of large GeoJSON files.options.maxzoomnumber= Maximum zoom to preserve detail at.options.buffernumber= Tile buffer on each side.options.tolerancenumber= Simplification tolerance (higher means simpler).
myfunc
This tests our support for parameters with explicit types but with default values specified in code.
Parameters
xnumber an argument
Returns number some
foo
This tests our support of JSDoc param tags without type information, or any type information we could infer from annotations.
Parameters
addressAn IPv6 address string