← Public packages
@kentcdodds/x
X API v2 helpers for tweets, search, legacy DMs, and encrypted X Chat via a Fly XDK sidecar.
src/unrepost-post.ts
14 lines · 577 B · TypeScriptimport { unrepostPost } from './client.ts'
import type { XPostActionParams } from './client.ts'
/**
* Remove a repost or dry-run the action; requires confirm: true.
* @returns Unrepost result, or dry-run request description.
* @example
* import unrepostPost from 'kody:@kentcdodds/x/unrepost-post'
* const preview = await unrepostPost({ id: '123', dryRun: true })
* // => { dryRun: true, method: 'DELETE', url: '...', requiresConfirm: true }
*/
export default async function unrepostPostEntrypoint(params: XPostActionParams = {}) {
return await unrepostPost(params)
}