code: function findSecondPassResolutions (
    tymlyRefs,
    resolvers
  ) {
    const secondPass = [ ]
  
    for (const [type, referees] of Object.entries(tymlyRefs)) {
      for (const [targetName, references] of Object.entries(referees)) {
        const target = `${type}:${targetName}`
  
        const refs = references
          .filter(ref => !ref.when)
          .map(ref => {
            ref.resolver = findResolver(ref.ref, resolvers)
            return ref
          })
          .filter(ref => ref.resolver)
  
        refs.forEach(r =>
          secondPass.push({
            target: target,
            path: r.path,
            ref: r.ref,
            resolver: r.resolver
          })
        )
  
        refs.forEach(r => { r.when = 'secondPass' })
      } // refs ...
    } // for ...
  
    return secondPass.length ? secondPass : null
  }
docs: isFunction