Add import type whenever possible

This commit is contained in:
Alejandro Celaya
2023-02-18 10:40:37 +01:00
parent 7add854b40
commit 2a5480da79
317 changed files with 955 additions and 807 deletions

View File

@@ -1,6 +1,7 @@
import { endOfDay, format, formatISO, startOfDay, subDays } from 'date-fns';
import type {
DateInterval } from '../../../src/utils/helpers/dateIntervals';
import {
DateInterval,
dateRangeIsEmpty,
dateToMatchingInterval,
intervalToDateRange,

View File

@@ -1,4 +1,5 @@
import { determineOrderDir, OrderDir, orderToString, stringToOrder } from '../../../src/utils/helpers/ordering';
import type { OrderDir } from '../../../src/utils/helpers/ordering';
import { determineOrderDir, orderToString, stringToOrder } from '../../../src/utils/helpers/ordering';
describe('ordering', () => {
describe('determineOrderDir', () => {

View File

@@ -1,4 +1,5 @@
import { buildQrCodeUrl, QrCodeFormat, QrErrorCorrection } from '../../../src/utils/helpers/qrCodes';
import type { QrCodeFormat, QrErrorCorrection } from '../../../src/utils/helpers/qrCodes';
import { buildQrCodeUrl } from '../../../src/utils/helpers/qrCodes';
describe('qrCodes', () => {
describe('buildQrCodeUrl', () => {

View File

@@ -1,6 +1,7 @@
import { Mock } from 'ts-mockery';
import { SemVer, versionMatch, Versions } from '../../../src/utils/helpers/version';
import { Empty } from '../../../src/utils/utils';
import type { SemVer, Versions } from '../../../src/utils/helpers/version';
import { versionMatch } from '../../../src/utils/helpers/version';
import type { Empty } from '../../../src/utils/utils';
describe('version', () => {
describe('versionMatch', () => {