Skip to content

Commit 6b7f94c

Browse files
committed
fix: typings fix for flush method
1 parent c414828 commit 6b7f94c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sdk.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,14 @@ export function nativeCrash(): void {
200200
/**
201201
* Flushes all pending events in the queue to disk.
202202
* Use this before applying any realtime updates such as code-push or expo updates.
203+
* Not yet working on Android
203204
*/
204-
export async function flush(): Promise<boolean> {
205+
export async function flush(timeout: number): Promise<boolean> {
205206
try {
206207
const client = getCurrentHub().getClient<NativescriptClient>();
207208

208209
if (client) {
209-
const result = await client.flush();
210+
const result = await client.flush(timeout);
210211

211212
return result;
212213
}

0 commit comments

Comments
 (0)