Shun Miyazawa 9 ماه پیش
والد
کامیت
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;
 };