watch takes a hyper-value and wait until it matches to a matcher. When it match it resolves returned promise.
If there are only 2 arguments provided it waits until hyper-value is not undefined
type of hyper-value
HyperScope instance
hyper-value to be observed
a promise to be resolved when matcher matches
watch takes a hyper-value and wait until it matches to a matcher. When it match it resolves returned promise.
If there are only 2 arguments provided it waits until hyper-value is not undefined
narrowed type of hyper-value; e.g. wait(hs, hv, 123 as 123) will be resolved with HyperValue<123> but not with HyperValue<number>
type of hyper-value
HyperScope instance
hyper-value to be observed
matcher that triggers resolve of the Promise
matcher that triggers reject of the Promise
a promise to be resolved when matcher matches
Generated using TypeDoc
Matcher is either the primitive value (e.g.
123/'abc') or a function that returnstruewhen provided with an appropriate argument.