@kody/x
src/repost-tweet.ts
12 lines · 427 B · TypeScriptimport { repostTweet } from './client.ts'
import type { XTweetActionParams } from './client.ts'
/**
* Repost or dry-run reposting an X post. Requires confirm: true.
* @example
* import repostTweet from 'kody:@kody/x/repost-tweet'
* const preview = await repostTweet({ tweetId: '123', dryRun: true })
*/
export default async function repostTweetEntrypoint(params: XTweetActionParams) {
return await repostTweet(params)
}