mark imports as type imports
parent
fff93f392a
commit
0d9072d382
2
app.ts
2
app.ts
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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>;
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue