File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ function isQuansyncGenerator<T>(value: any): value is QuansyncGenerator<T> {
2121function fromObject < Return , Args extends any [ ] > (
2222 options : QuansyncInputObject < Return , Args > ,
2323) : QuansyncFn < Return , Args > {
24- const generator = function * ( this : any , args : Args ) : QuansyncGenerator < Return , any > {
24+ const generator = function * ( this : any , ... args : Args ) : QuansyncGenerator < Return , any > {
2525 const isAsync = yield GET_IS_ASYNC
2626 if ( isAsync )
2727 return yield options . async . apply ( this , args )
2828 return options . sync . apply ( this , args )
2929 }
3030 function fn ( this : any , ...args : Args ) : any {
31- const iter = generator . call ( this , args ) as unknown as QuansyncAwaitableGenerator < Return , Args >
31+ const iter = generator . apply ( this , args ) as unknown as QuansyncAwaitableGenerator < Return , Args >
3232 iter . then = ( ...thenArgs ) => options . async . apply ( this , args ) . then ( ...thenArgs )
3333 iter . __quansync = true
3434 return iter
You can’t perform that action at this time.
0 commit comments