Explorar o código

refactor: add comment for type guard in SelectablePage definition

Shun Miyazawa hai 9 meses
pai
achega
c8812ab54a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/app/src/features/openai/interfaces/selectable-page.ts

+ 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;
 };