UNPKG

hn-ts

Version:

TypeScript client for the Hacker News API

12 lines 434 B
import { RawItem } from "./raw-item"; /** * `getRawItemById` returns the item with the given ID as is from the API. * If the item is not available, `getRawItemById` returns `undefined`. * * @see {@link RawItem} * @see {@link https://github.com/HackerNews/API#items} */ export declare function getRawItemById({ id, }: { id: number; }): Promise<RawItem | undefined>; //# sourceMappingURL=get-raw-item-by-id.d.ts.map