From 8b988acb567acee2dd839285a15c19787b07d7ba Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Thu, 13 Apr 2023 11:52:28 -0700 Subject: [PATCH] Reverting the usage of narrows (#3064) --- .../src/types/api/models/ConnectionSystemTypeMap.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/clients/admin-ui/src/types/api/models/ConnectionSystemTypeMap.ts b/clients/admin-ui/src/types/api/models/ConnectionSystemTypeMap.ts index 6750a47755..7910b40048 100644 --- a/clients/admin-ui/src/types/api/models/ConnectionSystemTypeMap.ts +++ b/clients/admin-ui/src/types/api/models/ConnectionSystemTypeMap.ts @@ -2,7 +2,6 @@ /* tslint:disable */ /* eslint-disable */ -import { narrow } from "narrow-minded"; import type { ConnectionType } from "./ConnectionType"; import type { SystemType } from "./SystemType"; @@ -17,11 +16,6 @@ export type ConnectionSystemTypeMap = { }; export const isConnectionSystemTypeMap = ( - obj: unknown + obj: any ): obj is ConnectionSystemTypeMap => - narrow( - { - encoded_icon: "string", - }, - obj - ); + (obj as ConnectionSystemTypeMap).encoded_icon !== undefined;