From f8e2930ec1c98943e903a4144b7b2bd752d059b5 Mon Sep 17 00:00:00 2001 From: monoid Date: Thu, 1 May 2025 16:13:01 +0900 Subject: [PATCH] refactor: remove unused function --- packages/server/src/model/doc.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/packages/server/src/model/doc.ts b/packages/server/src/model/doc.ts index 0e193bf..ec7ed75 100644 --- a/packages/server/src/model/doc.ts +++ b/packages/server/src/model/doc.ts @@ -12,29 +12,6 @@ export type { DBDocument }; -export const MetaContentBody = { - title: "string", - content_type: "string", - basepath: "string", - filename: "string", - content_hash: "string", - additional: "object", - tags: "string[]", -}; - -export const isDocBody = (c: unknown): c is DocumentBody => { - return check_type(c, MetaContentBody); -}; - -export const isDoc = (c: unknown): c is Document => { - if (typeof c !== "object" || c === null) return false; - if ("id" in c && typeof c.id === "number") { - const { id, ...rest } = c; - return isDocBody(rest); - } - return false; -}; - export interface DocumentAccessor { /** * rescan document