Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/x

src/search-recent.ts

12 lines · 430 B · TypeScript
import { searchRecent } from './client.ts'
import type { XSearchRecentParams } from './client.ts'

/**
 * Search recent public posts (GET /tweets/search/recent).
 * @example
 * import searchRecent from 'kody:@kody/x/search-recent'
 * const results = await searchRecent({ query: 'from:X', maxResults: 5 })
 */
export default async function searchRecentEntrypoint(params: XSearchRecentParams) {
	return await searchRecent(params)
}