Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32309162
D11353.1765293822.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
D11353.1765293822.diff
View Options
diff --git a/web/shared-worker/worker/identity-client.js b/web/shared-worker/worker/identity-client.js
--- a/web/shared-worker/worker/identity-client.js
+++ b/web/shared-worker/worker/identity-client.js
@@ -41,8 +41,9 @@
if (message.type === workerRequestMessageTypes.CALL_IDENTITY_CLIENT_METHOD) {
// Flow doesn't allow us to access methods like this (it needs an index
// signature declaration in the object type)
- // $FlowFixMe
- const method = identityClient[message.method];
+ const method: (...$ReadOnlyArray<mixed>) => mixed = (identityClient: any)[
+ message.method
+ ];
if (typeof method !== 'function') {
throw new Error(
`Couldn't find identity client method with name '${message.method}'`,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 9, 3:23 PM (9 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5854990
Default Alt Text
D11353.1765293822.diff (755 B)
Attached To
Mode
D11353: [web] Replace $FlowFixMe with any
Attached
Detach File
Event Timeline
Log In to Comment