JSHelpers Module
Functions and values
| Function or value | Description |
Full Usage:
alert msg
Parameters:
'a
|
|
Full Usage:
assertNotNull obj msg
Parameters:
'a
msg : 'b
Returns: 'a
|
|
Full Usage:
debugLevel
Returns: int
|
|
Full Usage:
delayedDispatch dispatch delayInMs msg
Parameters:
'a -> unit
delayInMs : int
msg : 'a
Returns: int
|
|
Full Usage:
emptyJsList ()
Parameters:
unit
Returns: 'a
|
|
Full Usage:
fshaprListToJsList list
Parameters:
'a list
Returns: 'a0
|
|
|
|
Full Usage:
getFailIfNull jsObj fields
Parameters:
'a
fields : string list
Returns: 'b
|
|
|
|
|
|
|
|
Full Usage:
getProcessPrivateMemory ()
Parameters:
unit
Returns: int
|
|
|
|
|
|
Full Usage:
globalGC
Returns: unit -> unit
|
|
Full Usage:
heapLimit ()
Parameters:
unit
Returns: int
|
|
Full Usage:
isNull obj
Parameters:
obj
Returns: bool
|
|
Full Usage:
jsListToFSharpList jsList
Parameters:
'a
Returns: 'b list
|
|
Full Usage:
jsType var
Parameters:
obj
|
|
Full Usage:
loggingMemory
Returns: bool
|
|
Full Usage:
maxHeap ()
Parameters:
unit
Returns: int
|
|
Full Usage:
memSize
Returns: int
|
|
Full Usage:
periodicDispatch dispatch delayInMs msg
Parameters:
'a -> unit
delayInMs : int
msg : 'a
Returns: int
|
|
Full Usage:
productionBuild
Returns: bool
|
|
Full Usage:
setDebugLevel ()
Parameters:
unit
|
Hack to provide a constant global variable set from command line arguments of main process. 0 => production. 1 => dev. 2 => debug. Also reads --log=wire,sim, which is the only way to have a log category on before the first line of startup runs - the Development menu and window.issieLog can only be reached later, by which time loading a project is already over.
|
Full Usage:
startTimer label
Parameters:
string
|
|
Full Usage:
stopAndLogTimer label
Parameters:
string
|
|
Full Usage:
usedHeap ()
Parameters:
unit
Returns: int
|
|
Full Usage:
uuid ()
Parameters:
unit
Returns: string
|
return a v4 (random) universally unique identifier (UUID) Under plain .NET the npm uuid package is not there, and a Fable import compiles to code that throws when called. Minting an id is not draw-block-specific - every path that adds a component or a port needs one - so the tests could not reach any of them. .NET has its own v4 generator, and nothing depends on which one produced an id, only that it is unique.
|