( offset: Offset, parentValue: ContextValue, defaultThing: ThingsByOffset[Offset] | undefined, thingsById: ThingsById<ThingsByOffset>[Offset] | undefined, extraThingsById: ExtraThingsById, )
| 30 | export const OFFSET_SYNCHRONIZER = 7; |
| 31 | |
| 32 | const mergeParentThings = <Offset extends Offsets>( |
| 33 | offset: Offset, |
| 34 | parentValue: ContextValue, |
| 35 | defaultThing: ThingsByOffset[Offset] | undefined, |
| 36 | thingsById: ThingsById<ThingsByOffset>[Offset] | undefined, |
| 37 | extraThingsById: ExtraThingsById, |
| 38 | ): [ThingsByOffset[Offset] | undefined, ThingsById<ThingsByOffset>[Offset]] => [ |
| 39 | defaultThing ?? |
| 40 | (parentValue[offset * 2] as ThingsByOffset[Offset] | undefined), |
| 41 | { |
| 42 | ...parentValue[offset * 2 + 1], |
| 43 | ...thingsById, |
| 44 | ...extraThingsById[offset], |
| 45 | }, |
| 46 | ]; |
| 47 | |
| 48 | export const Provider: typeof ProviderDecl = ({ |
| 49 | store, |
no outgoing calls
no test coverage detected
searching dependent graphs…