mobx-keystone
    Preparing search index...

    Function _async

    • Tricks the TS compiler into thinking that a model flow generator function can be awaited (is a promise).

      Type Parameters

      • A extends any[]

        Function arguments.

      • R

        Return value.

      Parameters

      • fn: (...args: A) => Generator<any, R, any>

        Flow function.

      Returns (...args: A) => Promise<R>