ProcessSubresourceCallback: ((link: SubresourceLink, recurse: ProcessSubresourceRecurse) => void | Promise<void>)

Type declaration

    • (link: SubresourceLink, recurse: ProcessSubresourceRecurse): void | Promise<void>
    • Callback invoked for each subresource.

      Can be defined via the processSubresource option.

      Parameters

      • link: SubresourceLink

        The subresource link to be processed.

      • recurse: ProcessSubresourceRecurse

        The callback that can be used to process this subresource’s subresources. Invoking it will invoke this function itself again, while enabling freezeDry to track progress and trigger event handlers.

      Returns void | Promise<void>