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:
parent
1ae24c01b0
commit
358fbfcc76
19 changed files with 35 additions and 28 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Request, Response, NextFunction } from 'express';
|
||||
import type { Request, Response, NextFunction } from 'express';
|
||||
|
||||
import { ErrorController } from '../controllers/ErrorController.js';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Request, Response, NextFunction } from 'express';
|
||||
import type { Request, Response, NextFunction } from 'express';
|
||||
|
||||
// Response type guard
|
||||
function isResponse(obj) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue