Skip to content

Commit

Permalink
fix: no any
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasc committed Feb 23, 2024
1 parent b87bcd1 commit de0531a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/neynar/frame/neynarFrameModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ export function convertToNeynarResponseModel(data: any): FrameValidationData | u
custody_address: interactor?.custody_address,
verified_accounts: interactor?.verifications,
verified_addresses: {
// TODO: update types, ideally pulling from Neynar automatically
verified_eth_accounts: (interactor as any)?.verified_addresses?.eth_addresses,
verified_sol_accounts: (interactor as any)?.verified_addresses?.sol_addresses,
eth_addresses: interactor?.verified_addresses?.eth_addresses,
sol_addresses: interactor?.verified_addresses?.sol_addresses,
},
},
liked: cast?.viewer_context?.liked,
Expand Down
4 changes: 4 additions & 0 deletions src/utils/neynar/frame/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export interface NeynarFrameValidationInternalModel {
follower_count: number;
following_count: number;
verifications: any[];
verified_addresses: {
eth_addresses: string[] | null;
sol_addresses: string[] | null;
};
active_status: string;
viewer_context: {
following: boolean;
Expand Down

0 comments on commit de0531a

Please sign in to comment.