Jelajahi Sumber

refactor: add comment for type guard in SelectablePage definition

Shun Miyazawa 8 bulan lalu
induk
melakukan
c8812ab54a

+ 1 - 0
apps/app/src/features/openai/interfaces/selectable-page.ts

@@ -4,6 +4,7 @@ import type { IPageForItem } from '~/interfaces/page';
 
 export type SelectablePage = Partial<IPageHasId> & { path: string }
 
+// type guard
 export const isSelectablePage = (page: IPageForItem): page is SelectablePage => {
   return page.path != null;
 };