(
cb: IPrioritizedCallback,
paths: any
)
| 31 | }; |
| 32 | |
| 33 | const getStash = ( |
| 34 | cb: IPrioritizedCallback, |
| 35 | paths: any |
| 36 | ): { |
| 37 | allOutputs: ILayoutCallbackProperty[][]; |
| 38 | allPropIds: any[]; |
| 39 | } => { |
| 40 | const {getOutputs} = cb; |
| 41 | const allOutputs = getOutputs(paths); |
| 42 | const flatOutputs: any[] = flatten(allOutputs); |
| 43 | const allPropIds: any[] = []; |
| 44 | |
| 45 | const reqOut: any = {}; |
| 46 | flatOutputs.forEach(({id, property}) => { |
| 47 | const idStr = stringifyId(id); |
| 48 | const idOut = (reqOut[idStr] = reqOut[idStr] || []); |
| 49 | idOut.push(property); |
| 50 | allPropIds.push(combineIdAndProp({id: idStr, property})); |
| 51 | }); |
| 52 | |
| 53 | return {allOutputs, allPropIds}; |
| 54 | }; |
| 55 | |
| 56 | const getIds = (cb: ICallback, paths: any) => { |
| 57 | const items = [ |
no test coverage detected
searching dependent graphs…