Further work to move from CJS to ESM as well as better use of import type ... rather than generic import ...

This commit is contained in:
Alan Bridgeman 2026-01-08 13:45:41 -06:00
parent 1ae24c01b0
commit 358fbfcc76
19 changed files with 35 additions and 28 deletions

View file

@ -1,4 +1,4 @@
import { Application, Request, Response, NextFunction } from 'express';
import type { Application, Request, Response, NextFunction } from 'express';
import { BaseController } from '../controllers/BaseController.js';

View file

@ -1,5 +1,5 @@
import { NextFunction } from 'express';
import { NextHandleFunction } from 'connect';
import type { NextFunction } from 'express';
import type { NextHandleFunction } from 'connect';
export const DELETE_METADATA_KEY = 'Delete';

View file

@ -1,4 +1,4 @@
import { Request, Response, NextFunction } from 'express';
import type { Request, Response, NextFunction } from 'express';
import { ErrorController } from '../controllers/ErrorController.js';

View file

@ -1,5 +1,5 @@
import { NextFunction } from 'express';
import { NextHandleFunction } from 'connect';
import type { NextFunction } from 'express';
import type { NextHandleFunction } from 'connect';
export const POST_METADATA_KEY = 'Put';

View file

@ -1,5 +1,5 @@
import { NextFunction } from 'express';
import { NextHandleFunction } from 'connect';
import type { NextFunction } from 'express';
import type { NextHandleFunction } from 'connect';
export const PUT_METADATA_KEY = 'Put';

View file

@ -1,4 +1,4 @@
import { Request, Response, NextFunction } from 'express';
import type { Request, Response, NextFunction } from 'express';
// Response type guard
function isResponse(obj) {