Fix lint issues

This commit is contained in:
CEC 2022-04-21 14:49:41 +02:00
parent 91e8fa7cd4
commit de6cbd7c0a
2 changed files with 5 additions and 11 deletions

View File

@ -7,7 +7,7 @@ import { z } from "zod";
export const isErrorApiErrorData = z.object({
// @ts-ignore
type: z.literal('error'),
type: z.literal("error"),
code: z.string(),
title: z.string(),
subtitle: z.string(),
@ -16,7 +16,7 @@ export const isErrorApiErrorData = z.object({
});
export const isErrorApiRetryData = z.object({
type: z.literal('retry'),
type: z.literal("retry"),
code: z.string(),
title: z.string(),
subtitle: z.string(),
@ -28,12 +28,12 @@ export const isErrorApiRetryData = z.object({
});
export const isErrorApiRedirectData = z.object({
type: z.literal('redirect'),
type: z.literal("redirect"),
urlToRedirect: z.string(),
});
export const isErrorApiUnauthorizedData = z.object({
type: z.literal('unauthorized'),
type: z.literal("unauthorized"),
});
export const isErrorApiData = z.discriminatedUnion("type", [

View File

@ -55,13 +55,7 @@ import { ExAdminSocketInterface } from "../Model/Websocket/ExAdminSocketInterfac
import { compressors } from "hyper-express";
import { isMapDetailsData } from "../Messages/JsonMessages/MapDetailsData";
import { adminService } from "./AdminService";
import {
ErrorApiData,
isErrorApiErrorData,
isErrorApiRedirectData,
isErrorApiRetryData,
isErrorApiUnauthorizedData,
} from "../Messages/JsonMessages/ErrorApiData";
import { ErrorApiData } from "../Messages/JsonMessages/ErrorApiData";
import { BoolValue, Int32Value, StringValue } from "google-protobuf/google/protobuf/wrappers_pb";
const debug = Debug("socket");