astronotion
Version:
Library to make Astro sites with content from Notion
10 lines (9 loc) • 369 B
TypeScript
import type { ExtendedRecordMap } from "notion-types";
/**
* Check if a given Notion page data is a collection/database (ie. "parent") type,
* which contains a list of entry pages.
*
* @param {ExtendedRecordMap} data
* @returns {boolean} true if page type is "collection_view_page"
*/
export declare const checkIfParentPage: (data: ExtendedRecordMap) => boolean;