UNPKG

@hansolbangul/notion-api

Version:

A lightweight library for fetching and statically generating data and TypeScript types from Notion pages.

19 lines (18 loc) 482 B
interface NotionConfig { pageId: string; } export declare class NotionApiService { private api; private config; constructor(config: NotionConfig); private fetchPage; /** * Get all page IDs from a Notion response * @param response - ExtendedRecordMap from Notion API * @param viewId - Optional viewId for filtering */ private getAllPageIds; private extractPageProperties; getPosts<T>(viewId?: string): Promise<T>; } export {};