a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(bluesky-threading): stricter types

Mary a87024ce aa37fc7a

+12 -7
+5
.changeset/large-groups-nail.md
··· 1 + --- 2 + '@atcute/bluesky-threading': patch 3 + --- 4 + 5 + strict types
+7 -7
packages/bluesky/threading/lib/types.ts
··· 13 13 export interface PostExternalEmbed { 14 14 type: 'external'; 15 15 /** Link to the page */ 16 - uri: string; 16 + uri: At.GenericUri; 17 17 /** Page title */ 18 18 title: string; 19 19 /** Page description */ ··· 92 92 export interface PostFeedEmbed { 93 93 type: 'feed'; 94 94 /** AT-URI of the feed */ 95 - uri: At.Uri; 95 + uri: At.ResourceUri; 96 96 /** 97 97 * CID of the feed, if not supplied, requires you to also supply an RPC 98 98 * instance for it to be able to make query calls. ··· 104 104 export interface PostListEmbed { 105 105 type: 'list'; 106 106 /** AT-URI of the list */ 107 - uri: string; 107 + uri: At.ResourceUri; 108 108 /** 109 109 * CID of the list, if not supplied, requires you to also supply an RPC 110 110 * instance for it to be able to make query calls. ··· 116 116 export interface PostQuoteEmbed { 117 117 type: 'quote'; 118 118 /** AT-URI of the post */ 119 - uri: string; 119 + uri: At.ResourceUri; 120 120 /** 121 121 * CID of the post, if not supplied, requires you to also supply an RPC 122 122 * instance for it to be able to make query calls. ··· 128 128 export interface PostStarterpackEmbed { 129 129 type: 'starterpack'; 130 130 /** AT-URI of the post */ 131 - uri: string; 131 + uri: At.ResourceUri; 132 132 /** 133 133 * CID of the starter pack, if not supplied, requires you to also supply an 134 134 * RPC instance for it to be able to make query calls. ··· 167 167 /** Allow replies from users mentioned in the post */ 168 168 mentions?: boolean; 169 169 /** Allow replies from users that are in these user lists */ 170 - listUris?: At.Uri[]; 170 + listUris?: At.ResourceUri[]; 171 171 } 172 172 173 173 /** Base interface for the thread being composed */ ··· 177 177 /** Abort signal */ 178 178 signal?: AbortSignal; 179 179 /** Author of the thread */ 180 - author: At.DID; 180 + author: At.Did; 181 181 /** 182 182 * The "creation time" for this thread, 183 183 * if not supplied, the current time is used