@just-func/types
Advanced tools
Weekly downloads
Changelog
@just-func/types@0.5.1
Readme
Type System of just-func.
JustEmpty
: A empty value.JustUno
: A single value.JustDuo
: A value with meta.JustValue
: Infer type of JustEmpty
, JustUno
, and JustDuo
.justValue()
: helper to define JustValue
.JustResult
: Return value of a function compliant with just-func.JustFunction
: Functions that compliant with just-funcjustFunction()
: helper to define JustFunction
.isJustEmpty()
isJustUno()
isJustDuo()
isJustValue()
Metadata is a first-class concept in just-func.
A compliant just-func function can accept a JustMeta
value as its second parameter.
The parameter is read only and can never be modified by the calling function.
JustMeta
: The basic form of metadata.StackTraceMeta
: Metadata for function that can adjust its stack trace when error occurs.FAQs
Types for just-func code
The npm package @just-func/types receives a total of 233 weekly downloads. As such, @just-func/types popularity was classified as not popular.
We found that @just-func/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.