mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-07-01 11:11:53 +00:00
10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
import {someFunc} from "../compiled/examples/streamCallback";
|
|
|
|
export async function streamCallbackCall(): Promise<string[]> {
|
|
return new Promise<string[]>((resolve, reject) => {
|
|
someFunc((a: string[]) => {
|
|
resolve(a);
|
|
})
|
|
});
|
|
}
|