forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flow: Annotate exported functions that return the result of a
fetch
.
To bring us closer to annotating all our exports, for zulip#4907. Most of these use a new `FixmeUntypedFetchResult` type; see its jsdoc. `apiFetch` can be unexported; so, do that, removing the need for an annotation [1]. `savePushToken` and `forgetPushToken` get `Promise<mixed>` because we don't actually inspect the returned result at all [2]. `checkCompatibility` gets `Promise<{ status: number, ... }>` because we'll always be looking at the response status [3]. [1] zulip#4927 (comment) [2] zulip#4927 (comment) [3] zulip#4927 (comment)
- Loading branch information
1 parent
ab9c903
commit 2165914
Showing
5 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters