Skip to content

Commit a59c090

Browse files
committed
docs: updating docs for waitForInitialization
added a link to the `waitForReady` for folks who do not want to deal with rejected promises
1 parent ef09a6d commit a59c090

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typings.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,8 @@ export interface LDDebugOverride {
10931093
* It is important that you handle the rejection case; otherwise it will become an unhandled Promise
10941094
* rejection, which is a serious error on some platforms. The Promise is not created unless you
10951095
* request it, so if you never call `waitForInitialization()` then you do not have to worry about
1096-
* unhandled rejections.
1096+
* unhandled rejections. Alternatively, if you do not want to deal with the rejection case, then you
1097+
* can use {@link waitUntilReady}.
10971098
*
10981099
* Note that you can also use event listeners ({@link on}) for the same purpose: the event `"initialized"`
10991100
* indicates success, and `"failed"` indicates failure.

0 commit comments

Comments
 (0)