소스 검색

add coment

Shun Miyazawa 10 달 전
부모
커밋
3994459fb2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      apps/app/src/server/service/search-delegator/elasticsearch-client-delegator/interfaces.ts

+ 2 - 0
apps/app/src/server/service/search-delegator/elasticsearch-client-delegator/interfaces.ts

@@ -4,6 +4,8 @@ import type { ES9ClientDelegator } from './es9-client-delegator';
 
 export type ElasticsearchClientDelegator = ES7ClientDelegator | ES8ClientDelegator | ES9ClientDelegator;
 
+
+// type guard
 export const isES7Client = (delegator: ElasticsearchClientDelegator): delegator is ES7ClientDelegator => {
   return delegator.delegetorVersion === 7;
 };