@dxos/app-framework - v0.16.0
    Preparing search index...

    Function wrapLoader

    • Marks wrapper as a decorator of source, so build tools resolve the wrapped body, not the wrapper. A wrapper that changes what the loader returns must name that change as an adapter.

      Type Parameters

      • F extends () => Promise<unknown>

      Parameters

      • wrapper: F
      • source: () => Promise<unknown>
      • Optionaladapter: LoaderAdapter

      Returns F