stream as argument in callback test

This commit is contained in:
DieMyst
2021-11-01 12:20:08 +03:00
parent 0c29c1fb7a
commit 80d46cc4a8
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import {someFunc} from "../compiled/examples/streamCallback";
export async function streamCallbackCall(): Promise<string[]> {
return new Promise<string[]>((resolve, reject) => {
someFunc((a: string[]) => {
resolve(a);
})
});
}