Skip to content

Commit 06c91ae

Browse files
committed
chore: use explicit type imports
1 parent b13b9cc commit 06c91ae

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/runtime/image.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defu } from 'defu'
22
import { hasProtocol, parseURL, joinURL, withLeadingSlash } from 'ufo'
3-
import type { ImageOptions, ImageSizesOptions, CreateImageOptions, ResolvedImage, ImageCTX, $Img } from '../types/image'
4-
import { ImageSizes, ImageSizesVariant } from '../types/image'
3+
import type { ImageOptions, ImageSizesOptions, CreateImageOptions, ResolvedImage, ImageCTX, $Img, ImageSizes, ImageSizesVariant } from '../types/image'
54
import { imageMeta } from './utils/meta'
65
import { checkDensities, parseDensities, parseSize, parseSizes } from './utils'
76
import { prerenderStaticImages } from './utils/prerender'

src/runtime/ipx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { fileURLToPath } from 'node:url'
2-
import { createIPX, createIPXH3Handler, ipxFSStorage, ipxHttpStorage, IPXOptions } from 'ipx'
2+
import { createIPX, createIPXH3Handler, ipxFSStorage, ipxHttpStorage } from 'ipx'
3+
import type { IPXOptions } from 'ipx'
34
import { lazyEventHandler, useBase } from 'h3'
45
import { isAbsolute } from 'pathe'
56
import type { NitroRuntimeConfig } from 'nitropack'

src/runtime/providers/uploadcare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* */
2020

2121
import { joinURL, withTrailingSlash } from 'ufo'
22-
import { ProviderGetImage } from '../../types'
22+
import type { ProviderGetImage } from '../../types'
2323
import { createOperationsGenerator } from '#image'
2424

2525
const operationsGenerator = createOperationsGenerator({

test/unit/image.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// @vitest-environment nuxt
22

33
import { beforeEach, describe, it, expect, vi } from 'vitest'
4-
import { ComponentMountingOptions, VueWrapper, mount } from '@vue/test-utils'
4+
import { mount } from '@vue/test-utils'
5+
import type { ComponentMountingOptions, VueWrapper } from '@vue/test-utils'
56
// @ts-expect-error virtual file
67
import { imageOptions } from '#build/image-options'
78
import { NuxtImg } from '#components'

0 commit comments

Comments
 (0)