docs
v0.0.1arrow_drop_downSums two numbers.
Adds two numbers.
Adds two numbers.
[]
(* | null)
returns the first element of an array reference.
[]
(* | null)
first element of given array
number
,number
number
Adds two numbers.
number
The first number in an addition.
number
The second number in an addition.
number
Returns the total.
Babel-based transpiling environment for Preact components
Bit build enviroment for transpiling Preact components using Bit.
How to use?
Import the environment
bit import bit.envs/compilers/preact -c
What’s inside
- Babel with JSX and babel-preset-latest.
number
,number
Create a point.
number
The x value.
number
The y value.
number
Get the x value.
number
The x value.
number
Get the y value.
number
The y value.
string
Point
Convert a string containing two comma-separated numbers into a point.
string
The string containing two comma-separated numbers.
Point
A Point object.
number
,number
number
Adds two numbers.
number
The first number in an addition.
number
The second number in an addition.
number
Returns the total.
Testing various params options
Name | Type | Description |
---|---|---|
defaults | object | The default values for parties. |
defaults.players | number | The default number of players. |
defaults.level | string | The default level for the party. |
defaults.treasure | object | The default treasure. |
defaults.treasure.gold | number | How much gold the party starts with. |
JSDoc Parser Function Declaration should have all the proper keys | Pass |
JSDoc Parser Function Declaration should extract the correct name | Pass |
JSDoc Parser Function Declaration should extract the correct description | Pass |
JSDoc Parser Function Declaration should extract the correct args | Pass |
JSDoc Parser Function Declaration should extract the correct returns | Pass |
JSDoc Parser Function Declaration should extract the correct access from the @public annotation | Pass |
JSDoc Parser Function Declaration should extract the static attribute from the @static annotation | Pass |
JSDoc Parser Method Declaration and Class Declaration should be a populated array | Pass |
JSDoc Parser Method Declaration and Class Declaration should recognize the constructor | Pass |
JSDoc Parser Method Declaration and Class Declaration should extract the constructor’s args correctly | Pass |
JSDoc Parser Method Declaration and Class Declaration should recognize the getX method | Pass |
JSDoc Parser Method Declaration and Class Declaration should recognize the getY method | Pass |
JSDoc Parser Method Declaration and Class Declaration should recognize the fromString method as the last doclet | Pass |
JSDoc Parser Variable Declaration should be an array of one Doclet | Pass |
JSDoc Parser Variable Declaration should parse the doc correctly | Pass |
JSDoc Parser Various Param Types should recognize "" as "" | Pass |
JSDoc Parser Various Param Types should recognize "[]" as "[]" | Pass |
JSDoc Parser Various Param Types should recognize Union type correctly | Pass |
JSDoc Parser Various Param Types should recognize custom type correctly | Pass |
JSDoc Parser Various Param Types should recognize Object type | Pass |
JSDoc Parser Various Param Types should recognize Function type | Pass |
JSDoc Parser Various Param Types should recognize Array of one type | Pass |
JSDoc Parser Various Param Types should recognize Array of union | Pass |
JSDoc Parser Flow Type File should parse the file with no errors | Pass |
JSDoc Parser Description Tag should ignore an invalid description | Pass |
JSDoc Parser Description Tag should recognize the description tag | Pass |
JSDoc Parser Description Tag should recognize the synonym “desc” | Pass |
JSDoc Parser Access property should find only public functions | Pass |
JSDoc Parser Properties property should parse the property tag correctly | Pass |
JSDoc Parser Anonymous Function should parse the name properly | Pass |
JSDoc Parser Anonymous Function should parse the args properly | Pass |