Make biome happier

This commit is contained in:
2026-01-01 17:22:04 -06:00
parent 20e5da0d54
commit e2ea472a10
5 changed files with 20 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import express, {
Request as ExpressRequest,
Response as ExpressResponse,
type Request as ExpressRequest,
type Response as ExpressResponse,
} from "express";
import { match } from "path-to-regexp";
import { cli } from "./cli";
@@ -10,19 +10,16 @@ import { routes } from "./routes";
import { services } from "./services";
// import { URLPattern } from 'node:url';
import {
Call,
InternalHandler,
Method,
ProcessedRoute,
Result,
Route,
type Call,
type InternalHandler,
type Method,
massageMethod,
methodParser,
type ProcessedRoute,
type Result,
type Route,
} from "./types";
const app = express();
services.logging.log({ source: "logging", text: ["1"] });

View File

@@ -1,7 +1,7 @@
import { contentTypes } from "./content-types";
import { httpCodes } from "./http-codes";
import { services } from "./services";
import { Call, Handler, Result } from "./types";
import type { Call, Handler, Result } from "./types";
const multiHandler: Handler = async (call: Call): Promise<Result> => {
const code = httpCodes.success.OK;

View File

@@ -4,7 +4,7 @@ import { contentTypes } from "./content-types";
import { multiHandler } from "./handlers";
import { HttpCode, httpCodes } from "./http-codes";
import { services } from "./services";
import { Call, ProcessedRoute, Result, Route } from "./types";
import { type Call, ProcessedRoute, type Result, type Route } from "./types";
// FIXME: Obviously put this somewhere else
const okText = (result: string): Result => {

View File

@@ -1,13 +1,13 @@
{
"compilerOptions": {
"esModuleInterop": true,
"target": "ES2022",
"lib": ["ES2023"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"target": "ES2022",
"lib": ["ES2023"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noImplicitAny": true,
"strict": true,
"types": ["node"],
"outDir": "out",
"outDir": "out"
}
}

View File

@@ -3,13 +3,13 @@
// FIXME: split this up into types used by app developers and types internal
// to the framework.
import {
Request as ExpressRequest,
type Request as ExpressRequest,
Response as ExpressResponse,
} from "express";
import { MatchFunction } from "path-to-regexp";
import type { MatchFunction } from "path-to-regexp";
import { z } from "zod";
import { ContentType, contentTypes } from "./content-types";
import { HttpCode, httpCodes } from "./http-codes";
import { type ContentType, contentTypes } from "./content-types";
import { type HttpCode, httpCodes } from "./http-codes";
const methodParser = z.union([
z.literal("GET"),