chore: remove unused notion client type (#5399)

Integrated into release/v3.8.42
This commit is contained in:
Jan Leon
2026-06-30 00:14:21 +02:00
committed by GitHub
parent 7bd0bc8bca
commit be97882b58
2 changed files with 8 additions and 2 deletions

View File

@@ -245,5 +245,3 @@ export function createNotionClient(apiKey: string) {
return client;
}
export type NotionClient = ReturnType<typeof createNotionClient>;

View File

@@ -45,6 +45,14 @@ test("NotionTimeoutError has correct name", () => {
test("createNotionClient returns object with expected methods", async () => {
const { createNotionClient } = await import("../../src/lib/notion/api.ts");
const client = createNotionClient("test-token");
assert.deepEqual(Object.keys(client), [
"searchPagesAndDatabases",
"getPage",
"listBlockChildren",
"queryDatabase",
"getDatabase",
"appendBlocks",
]);
assert.equal(typeof client.searchPagesAndDatabases, "function");
assert.equal(typeof client.getPage, "function");
assert.equal(typeof client.listBlockChildren, "function");