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