hn-ts
Version:
TypeScript client for the Hacker News API
19 lines • 488 B
TypeScript
/**
* `getMaxItemId` returns the ID of the most recent item available from the API.
*
* @example
* ```typescript
* import { getMaxItemId } from 'hn-ts';
*
* (async () => {
* const id = await getMaxItemId();
*
* // Output: a number like `27107832`
* console.log(id);
* })();
* ```
*
* @see {@link https://github.com/HackerNews/API#max-item-id}
*/
export declare function getMaxItemId(): Promise<number>;
//# sourceMappingURL=get-max-item-id.d.ts.map