diff options
Diffstat (limited to 'frontend/src/gql/Utils.ts')
-rw-r--r-- | frontend/src/gql/Utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/src/gql/Utils.ts b/frontend/src/gql/Utils.ts index 177dff0..6fedd05 100644 --- a/frontend/src/gql/Utils.ts +++ b/frontend/src/gql/Utils.ts @@ -19,6 +19,7 @@ export function omitIdentifiers<T extends { __typename?: unknown; id: number }>( return omit(obj, '__typename', 'id'); } +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function isSuccess(object: any): object is gql.Success { if (object.__typename === undefined) { return false; @@ -27,6 +28,7 @@ export function isSuccess(object: any): object is gql.Success { return object.__typename.endsWith('Success') && (object as gql.Success).message !== undefined; } +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function isError(object: any): object is gql.Error { if (object.__typename === undefined) { return false; |