Skip to content

src/get-article.ts

11 lines · 357 B · TypeScript
Raw
import { getArticle, parseGetArticle } from './articles.ts'

/**
 * Get one Intercom article by id.
 * @example
 * import getArticle from 'kody:@kody/intercom/get-article'
 * const article = await getArticle({ id })
 */
export default async function getArticleEntrypoint(params: Record<string, unknown> = {}) {
	return getArticle(parseGetArticle(params))
}