Skip to content
← Public packages

@kentcdodds/x

X API v2 helpers for tweets, search, legacy DMs, and encrypted X Chat via a Fly XDK sidecar.

src/remove-bookmark.ts

14 lines · 590 B · TypeScript
import { removeBookmark } from './client.ts'
import type { XPostActionParams } from './client.ts'

/**
 * Remove a bookmark or dry-run the action; requires confirm: true.
 * @returns Removal result, or dry-run request description.
 * @example
 * import removeBookmark from 'kody:@kentcdodds/x/remove-bookmark'
 * const preview = await removeBookmark({ id: '123', dryRun: true })
 * // => { dryRun: true, method: 'DELETE', url: '...', requiresConfirm: true }
 */
export default async function removeBookmarkEntrypoint(params: XPostActionParams = {}) {
	return await removeBookmark(params)
}