We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd2d86 commit aaa69fcCopy full SHA for aaa69fc
examples/full/lib/notion.ts
@@ -28,5 +28,11 @@ export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
28
}
29
30
export async function search(params: SearchParams): Promise<SearchResults> {
31
- return notion.search(params)
+ if (notion instanceof NotionAPI) {
32
+ return notion.search(params)
33
+ } else {
34
+ console.error(
35
+ 'NotionCompatAPI does not have a search method. Use NotionAPI instead.'
36
+ )
37
+ }
38
0 commit comments