MCPcopy Create free account
hub / github.com/activejs/activejs / randomAsyncSystemInitialValue

Function randomAsyncSystemInitialValue

packages/core/src/tests/utils.ts:419–426  ·  view source on GitHub ↗
(validness = 0.7, nestingLvl = 1)

Source from the content-addressed store, hash-verified

417}
418
419export function randomAsyncSystemInitialValue(validness = 0.7, nestingLvl = 1) {
420 return {
421 query: randomInitialValue(GenericUnit, validness, nestingLvl),
422 data: randomInitialValue(GenericUnit, validness, nestingLvl),
423 error: randomInitialValue(GenericUnit, validness, nestingLvl),
424 pending: randomInitialValue(BoolUnit, validness, nestingLvl),
425 } as AsyncSystemValue<any, any, any>;
426}
427
428export function randomUnitCtor(): new (config?: UnitConfig<any>) => UnitBase<any> &
429 NonPrimitiveUnitBase<any> {

Callers 1

randomAsyncSystemConfigFunction · 0.85

Calls 1

randomInitialValueFunction · 0.85

Tested by

no test coverage detected