Fix lint issues
This commit is contained in:
parent
91e8fa7cd4
commit
de6cbd7c0a
@ -7,7 +7,7 @@ import { z } from "zod";
|
|||||||
|
|
||||||
export const isErrorApiErrorData = z.object({
|
export const isErrorApiErrorData = z.object({
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
type: z.literal('error'),
|
type: z.literal("error"),
|
||||||
code: z.string(),
|
code: z.string(),
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
subtitle: z.string(),
|
subtitle: z.string(),
|
||||||
@ -16,7 +16,7 @@ export const isErrorApiErrorData = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const isErrorApiRetryData = z.object({
|
export const isErrorApiRetryData = z.object({
|
||||||
type: z.literal('retry'),
|
type: z.literal("retry"),
|
||||||
code: z.string(),
|
code: z.string(),
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
subtitle: z.string(),
|
subtitle: z.string(),
|
||||||
@ -28,12 +28,12 @@ export const isErrorApiRetryData = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const isErrorApiRedirectData = z.object({
|
export const isErrorApiRedirectData = z.object({
|
||||||
type: z.literal('redirect'),
|
type: z.literal("redirect"),
|
||||||
urlToRedirect: z.string(),
|
urlToRedirect: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const isErrorApiUnauthorizedData = z.object({
|
export const isErrorApiUnauthorizedData = z.object({
|
||||||
type: z.literal('unauthorized'),
|
type: z.literal("unauthorized"),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const isErrorApiData = z.discriminatedUnion("type", [
|
export const isErrorApiData = z.discriminatedUnion("type", [
|
||||||
|
@ -55,13 +55,7 @@ import { ExAdminSocketInterface } from "../Model/Websocket/ExAdminSocketInterfac
|
|||||||
import { compressors } from "hyper-express";
|
import { compressors } from "hyper-express";
|
||||||
import { isMapDetailsData } from "../Messages/JsonMessages/MapDetailsData";
|
import { isMapDetailsData } from "../Messages/JsonMessages/MapDetailsData";
|
||||||
import { adminService } from "./AdminService";
|
import { adminService } from "./AdminService";
|
||||||
import {
|
import { ErrorApiData } from "../Messages/JsonMessages/ErrorApiData";
|
||||||
ErrorApiData,
|
|
||||||
isErrorApiErrorData,
|
|
||||||
isErrorApiRedirectData,
|
|
||||||
isErrorApiRetryData,
|
|
||||||
isErrorApiUnauthorizedData,
|
|
||||||
} from "../Messages/JsonMessages/ErrorApiData";
|
|
||||||
import { BoolValue, Int32Value, StringValue } from "google-protobuf/google/protobuf/wrappers_pb";
|
import { BoolValue, Int32Value, StringValue } from "google-protobuf/google/protobuf/wrappers_pb";
|
||||||
|
|
||||||
const debug = Debug("socket");
|
const debug = Debug("socket");
|
||||||
|
Loading…
Reference in New Issue
Block a user