diff --git a/src/server/NeynarClient.ts b/src/server/NeynarClient.ts index a0106f1..c1e0bc7 100644 --- a/src/server/NeynarClient.ts +++ b/src/server/NeynarClient.ts @@ -21,6 +21,16 @@ export type FeedResponse = { } } +// TODO: type non-success responses +export type PostCastResponse = { + success: true + cast: { + hash: Hash + author: { fid: number } + text: string + } +} + // Abbreviated type definition, just covering the cases we're using type JsonValue = string | number | null type Json = Record @@ -128,7 +138,7 @@ export default class NeynarClient { } if (extra?.embeds) params.embeds = extra.embeds if (extra?.parent) params.parent = extra.parent - return this.post('cast', params) + return this.post('cast', params) } deleteCast(signerUuid: string, hash: Hash) {