mark imports as type imports

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-24 10:40:15 -05:00
parent fff93f392a
commit 0d9072d382
4 changed files with 5 additions and 5 deletions

2
app.ts
View File

@ -1,5 +1,5 @@
import createError from 'http-errors' import createError from 'http-errors'
import express, { RequestHandler } from 'express' import express, { type RequestHandler } from 'express'
import compression from 'compression' import compression from 'compression'
import path from 'node:path' import path from 'node:path'

View File

@ -1,10 +1,10 @@
/* eslint-disable unicorn/filename-case */ /* eslint-disable unicorn/filename-case */
import ical, { ICalEventData, ICalEventStatus } from 'ical-generator' import ical, { type ICalEventData, ICalEventStatus } from 'ical-generator'
import { import {
getWorkOrderMilestones, getWorkOrderMilestones,
WorkOrderMilestoneFilters type WorkOrderMilestoneFilters
} from '../../helpers/lotOccupancyDB/getWorkOrderMilestones.js' } from '../../helpers/lotOccupancyDB/getWorkOrderMilestones.js'
import type { Request, Response } from 'express' import type { Request, Response } from 'express'

View File

@ -1,4 +1,4 @@
import * as recordTypes from '../types/recordTypes'; import type * as recordTypes from '../types/recordTypes';
export declare function regenerateApiKey(userName: string): Promise<void>; export declare function regenerateApiKey(userName: string): Promise<void>;
export declare function getApiKey(userName: string): Promise<string>; export declare function getApiKey(userName: string): Promise<string>;
export declare function getApiKeyFromSession(session: recordTypes.PartialSession): Promise<string>; export declare function getApiKeyFromSession(session: recordTypes.PartialSession): Promise<string>;

View File

@ -3,7 +3,7 @@ import { v4 as uuidv4 } from 'uuid'
import Debug from 'debug' import Debug from 'debug'
import * as recordTypes from '../types/recordTypes' import type * as recordTypes from '../types/recordTypes'
const debug = Debug('lot-occupancy-system:functions.api') const debug = Debug('lot-occupancy-system:functions.api')