Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3370570
D9714.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
663 B
Referenced Files
None
Subscribers
None
D9714.diff
View Options
diff --git a/lib/utils/conversion-utils.js b/lib/utils/conversion-utils.js
--- a/lib/utils/conversion-utils.js
+++ b/lib/utils/conversion-utils.js
@@ -16,7 +16,7 @@
outputValidator: TType<T>,
data: T,
): T {
- const conversionFunction = id => {
+ const conversionFunction = (id: string) => {
if (id.indexOf('|') !== -1) {
console.warn(`Server id '${id}' already has a prefix`);
return id;
@@ -33,7 +33,7 @@
data: T,
): T {
const prefix = serverPrefixID + '|';
- const conversionFunction = id => {
+ const conversionFunction = (id: string) => {
if (id.startsWith(prefix)) {
return id.substr(prefix.length);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 3:25 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2587507
Default Alt Text
D9714.diff (663 B)
Attached To
Mode
D9714: [Flow202][lib][skip-ci] [22/23] Fix Flow issues with untyped conversionFunctions in conversion-utils.js
Attached
Detach File
Event Timeline
Log In to Comment