oh lord. prettier eslint and all that

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 20:24:41 +01:00
parent e1f37b439e
commit 107feda4ad
121 changed files with 1856 additions and 1684 deletions

View File

@@ -1,6 +1,6 @@
import { type NextApiResponse } from 'next';
import type { NextApiResponse } from 'next';
import { type MixanErrorResponse, type MixanIssue } from '@mixan/types';
import type { MixanErrorResponse, MixanIssue } from '@mixan/types';
export class HttpError extends Error {
public status: number;
@@ -25,7 +25,7 @@ export class HttpError extends Error {
}
}
export function createIssues(arr: Array<MixanIssue>) {
export function createIssues(arr: MixanIssue[]) {
throw new HttpError(400, 'Issues', arr);
}