Skip to content

Commit

Permalink
Reverting the usage of narrows (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana authored Apr 13, 2023
1 parent 9ec160d commit 8b988ac
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions clients/admin-ui/src/types/api/models/ConnectionSystemTypeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */

import { narrow } from "narrow-minded";
import type { ConnectionType } from "./ConnectionType";
import type { SystemType } from "./SystemType";

Expand All @@ -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;

0 comments on commit 8b988ac

Please sign in to comment.