refactor: use type imports

This commit is contained in:
Carlos Valente
2025-01-24 17:03:34 +01:00
committed by Carlos Valente
parent 960f0322ad
commit b4caec0644
25 changed files with 28 additions and 28 deletions
@@ -3,7 +3,7 @@
* Google Sheets
*/
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import { generateRundownPreview, listWorksheets, saveExcelFile } from './excel.service.js';
export async function postExcel(req: Request, res: Response) {
@@ -1,5 +1,5 @@
import { Request } from 'express';
import multer, { FileFilterCallback } from 'multer';
import type { Request } from 'express';
import multer, { type FileFilterCallback } from 'multer';
import { EXCEL_MIME } from '../../utils/parser.js';
import { storage } from '../../utils/upload.js';
@@ -4,7 +4,7 @@
*/
import { CustomFields, OntimeRundown } from 'ontime-types';
import { ImportMap } from 'ontime-utils';
import type { ImportMap } from 'ontime-utils';
import { extname } from 'path';
import { existsSync } from 'fs';
@@ -1,7 +1,7 @@
import { isImportMap } from 'ontime-utils';
import { body, validationResult } from 'express-validator';
import { NextFunction, Request, Response } from 'express';
import type { NextFunction, Request, Response } from 'express';
export const validateFileExists = [
(req: Request, res: Response, next: NextFunction) => {