Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3300581
D11776.id39672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11776.id39672.diff
View Options
diff --git a/lib/types/farcaster-types.js b/lib/types/farcaster-types.js
--- a/lib/types/farcaster-types.js
+++ b/lib/types/farcaster-types.js
@@ -13,3 +13,17 @@
+type: 'farcaster_data',
+fid: string,
};
+
+export type FarcasterUser = {
+ +fid: number,
+ +viewerContext: {
+ +following: boolean,
+ },
+ ...
+};
+
+export type FarcasterChannel = {
+ +id: string,
+ +name: string,
+ ...
+};
diff --git a/lib/utils/neynar-client.js b/lib/utils/neynar-client.js
--- a/lib/utils/neynar-client.js
+++ b/lib/utils/neynar-client.js
@@ -3,14 +3,10 @@
import invariant from 'invariant';
import { getMessageForException } from './errors.js';
-
-type FarcasterUser = {
- +fid: number,
- +viewerContext: {
- +following: boolean,
- },
- ...
-};
+import type {
+ FarcasterChannel,
+ FarcasterUser,
+} from '../types/farcaster-types.js';
type FetchFollowersResponse = {
+result: {
@@ -21,12 +17,6 @@
},
};
-type FarcasterChannel = {
- +id: string,
- +name: string,
- ...
-};
-
type FetchFollowedFarcasterChannelsResponse = {
+channels: $ReadOnlyArray<FarcasterChannel>,
+next: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 7:53 PM (20 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535781
Default Alt Text
D11776.id39672.diff (1 KB)
Attached To
Mode
D11776: [lib] move farcaster types to dedicated file
Attached
Detach File
Event Timeline
Log In to Comment