refactor: split api into api, api-cli & api-plugin

This commit is contained in:
2023-06-02 16:41:25 +02:00
parent 495a63977c
commit b21833de40
205 changed files with 1981 additions and 1492 deletions

View File

@@ -51,7 +51,7 @@ export const typemap: ElasticsearchTypemap = {
*/
export function isTagType(string_: string): boolean {
for (const key in typemap) {
if (typemap.hasOwnProperty(key) && typeof typemap[key][string_] !== 'undefined') {
if (typemap.hasOwnProperty(key) && typemap[key][string_] !== undefined) {
return true;
}
}