Skip to content

Commit dacce82

Browse files
committed
transportTypes [nfc]: Add TODO for improvement of Auth['apiKey']
1 parent 582cf8f commit dacce82

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api/transportTypes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
*/
1818
export type Auth = $ReadOnly<{|
1919
realm: URL,
20+
21+
/** The API key, or the empty string if the user has logged out. */
22+
// TODO: Instead of the empty string, use null, to get more helpful
23+
// feedback from Flow. We can't express to Flow the type whose values
24+
// are all strings except the empty string. When making this change, be
25+
// sure to write a migration, and carefully track down all checks
26+
// against the empty string and convert them to checks against null.
2027
apiKey: string,
2128

2229
// TODO: Follow changes in the user's email address, whether while we're

0 commit comments

Comments
 (0)