Skip to content

Commit f61f28d

Browse files
Copilotnzakas
andcommitted
Fix TypeScript compilation errors in postThread implementations
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
1 parent a3d21ba commit f61f28d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/strategies/bluesky.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ import { validatePostOptions } from "../util/options.js";
5858
* @property {Object} [record.embed] The embedded content in the post.
5959
* @property {string} record.embed.$type The type of embedded content.
6060
* @property {Array<Object>} [record.embed.images] The images to embed.
61+
* @property {Object} [record.reply] Reply information for threading.
62+
* @property {Object} record.reply.root The root post of the thread.
63+
* @property {string} record.reply.root.uri The URI of the root post.
64+
* @property {string} record.reply.root.cid The CID of the root post.
65+
* @property {Object} record.reply.parent The parent post in the thread.
66+
* @property {string} record.reply.parent.uri The URI of the parent post.
67+
* @property {string} record.reply.parent.cid The CID of the parent post.
6168
*
6269
*/
6370

src/strategies/twitter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export class TwitterStrategy {
246246
}
247247

248248
// Build tweet options
249+
/** @type {Object<string, any>} */
249250
const tweetOptions = {};
250251
if (previousTweetId) {
251252
tweetOptions.reply = {

0 commit comments

Comments
 (0)