Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: use of extension in import type declarations #5316

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,11 @@ module.exports = {
rules: {
'no-extra-semi': 'off',
'no-restricted-syntax': ['error', {
selector: 'ImportDeclaration[importKind="type"][source.value=/^\\./]:not([source.value=/\\.js$/])',
selector: 'ImportDeclaration[importKind="type"][source.value=/^(\\.+|@uppy\\x2F[a-z-0-9]+)\\x2F/]:not([source.value=/^@uppy\\x2Futils\\x2F/]):not([source.value=/\\.js$/])',
message: 'Use ".js" file extension for import type declarations',
}, {
selector: 'ImportDeclaration[source.value=/^@uppy\\x2Futils\\x2Flib\\x2F.+\\.[mc]?[jt]sx?$/]',
message: 'Do not use file extension when importing from @uppy/utils',
}],
'import/prefer-default-export': 'off',
'@typescript-eslint/no-empty-function': 'off',
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/audio/src/Audio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
Meta,
MinimalRequiredUppyFile,
} from '@uppy/utils/lib/UppyFile'
import type { Uppy } from '@uppy/core/lib/Uppy'
import type { Uppy } from '@uppy/core/lib/Uppy.js'

import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
import supportsMediaRecorder from './supportsMediaRecorder.ts'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/box/src/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/companion-client/src/Provider.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { Uppy } from '@uppy/core'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type {
RequestOptions,
CompanionClientProvider,
} from '@uppy/utils/lib/CompanionClientProvider'
import type { UnknownProviderPlugin } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPlugin } from '@uppy/core/lib/Uppy.js'
import RequestClient, { authErrorStatusCode } from './RequestClient.ts'
import type { CompanionPluginOptions } from './index.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/compressor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import prettierBytes from '@transloadit/prettier-bytes'
import CompressorJS from 'compressorjs'

import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js'

import locale from './locale.ts'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/src/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type State,
} from '@uppy/core'
import type { ComponentChild, VNode } from 'preact'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import StatusBar from '@uppy/status-bar'
import Informer from '@uppy/informer'
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/drag-drop/src/DragDrop.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UIPlugin, type Uppy } from '@uppy/core'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { ChangeEvent } from 'preact/compat'
import toArray from '@uppy/utils/lib/toArray'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/drop-target/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { Uppy } from '@uppy/core/lib/Uppy'
import type { Uppy } from '@uppy/core/lib/Uppy.js'
import type { DefinePluginOpts, PluginOpts } from '@uppy/core/lib/BasePlugin.js'
import BasePlugin from '@uppy/core/lib/BasePlugin.js'
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dropbox/src/Dropbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/facebook/src/Facebook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/golden-retriever/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import throttle from 'lodash/throttle.js'
import BasePlugin from '@uppy/core/lib/BasePlugin.js'
import type { PluginOpts, DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { PluginOpts, DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type Uppy from '@uppy/core'
import type { UploadResult } from '@uppy/core'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/google-drive/src/DriveProviderViews.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {
PartialTreeFile,
PartialTreeFolderNode,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import { ProviderViews } from '@uppy/provider-views'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/google-drive/src/GoogleDrive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import DriveProviderViews from './DriveProviderViews.ts'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/google-photos/src/GooglePhotos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.ts'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/instagram/src/Instagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/onedrive/src/OneDrive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/progress-bar/src/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { h, type ComponentChild } from 'preact'
import { UIPlugin, type UIPluginOptions } from '@uppy/core'
import type { Uppy, State } from '@uppy/core/lib/Uppy'
import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PartialTreeFolder } from '@uppy/core/lib/Uppy'
import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.js'
import { h, Fragment } from 'preact'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type ProviderView from './ProviderView/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/Browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { I18n } from '@uppy/utils/lib/Translator'
import type {
PartialTreeFile,
PartialTreeFolderNode,
} from '@uppy/core/lib/Uppy.ts'
} from '@uppy/core/lib/Uppy.js'
import { useEffect, useState } from 'preact/hooks'
import Item from './Item/index.tsx'
import ProviderView from './ProviderView/ProviderView.tsx'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/FooterActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h } from 'preact'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { Meta, Body } from '@uppy/utils/lib/UppyFile'
import classNames from 'classnames'
import type { PartialTree } from '@uppy/core/lib/Uppy'
import type { PartialTree } from '@uppy/core/lib/Uppy.js'
import { useMemo } from 'preact/hooks'
import getNumberOfSelectedFiles from './utils/PartialTreeUtils/getNumberOfSelectedFiles.ts'
import ProviderView from './ProviderView/ProviderView.tsx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h } from 'preact'
import type {
PartialTreeFile,
PartialTreeFolderNode,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import ItemIcon from './ItemIcon.tsx'

type GridItemProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {
PartialTreeFile,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import { h } from 'preact'
import ItemIcon from './ItemIcon.tsx'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/Item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
PartialTreeFile,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy.ts'
} from '@uppy/core/lib/Uppy.js'
import GridItem from './components/GridItem.tsx'
import ListItem from './components/ListItem.tsx'

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/ProviderView/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { h } from 'preact'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.ts'
import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.js'
import classNames from 'classnames'
import User from './User.tsx'
import Breadcrumbs from '../Breadcrumbs.tsx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import type {
UnknownProviderPluginState,
PartialTreeId,
PartialTree,
} from '@uppy/core/lib/Uppy.ts'
} from '@uppy/core/lib/Uppy.js'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile.ts'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
import type Translator from '@uppy/utils/lib/Translator'
import classNames from 'classnames'
import type { ValidateableFile } from '@uppy/core/lib/Restricter.ts'
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
import AuthView from './AuthView.tsx'
import Header from './Header.tsx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import type {
PartialTreeFolderRoot,
UnknownSearchProviderPlugin,
UnknownSearchProviderPluginState,
} from '@uppy/core/lib/Uppy.ts'
} from '@uppy/core/lib/Uppy.js'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
import classNames from 'classnames'
import type { ValidateableFile } from '@uppy/core/lib/Restricter.ts'
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
import SearchInput from '../SearchInput.tsx'
import Browser from '../Browser.tsx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
PartialTreeFile,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
import PQueue from 'p-queue'
import shallowClone from './shallowClone.ts'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
PartialTreeFile,
PartialTreeFolder,
PartialTreeFolderNode,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'

const afterOpenFolder = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
PartialTreeFolder,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'

const afterScrollFolder = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
PartialTreeFolder,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import shallowClone from './shallowClone.ts'

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
PartialTreeFolder,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'

const getBreadcrumbs = (
partialTree: PartialTree,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
PartialTreeFile,
PartialTreeFolderNode,
PartialTreeId,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'

export interface Cache {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PartialTree } from '@uppy/core/lib/Uppy'
import type { PartialTree } from '@uppy/core/lib/Uppy.js'

/**
* We're interested in all 'checked' leaves of this tree,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
PartialTreeFolderNode,
PartialTreeFolderRoot,
PartialTreeId,
} from '@uppy/core/lib/Uppy.ts'
} from '@uppy/core/lib/Uppy.js'
import afterToggleCheckbox from './afterToggleCheckbox.ts'
import afterOpenFolder from './afterOpenFolder.ts'
import afterScrollFolder from './afterScrollFolder.ts'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PartialTree } from '@uppy/core/lib/Uppy'
import type { PartialTree } from '@uppy/core/lib/Uppy.js'

/**
* One-level copying is sufficient as mutations within our `partialTree` are limited to properties
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/provider-views/src/utils/getClickedRange.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {
PartialTreeFile,
PartialTreeFolderNode,
} from '@uppy/core/lib/Uppy'
} from '@uppy/core/lib/Uppy.js'

// Shift-clicking selects a single consecutive list of items
// starting at the previous click.
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/remote-sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Unsplash from '@uppy/unsplash'
import Url from '@uppy/url'
import Zoom from '@uppy/zoom'

import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/screen-capture/src/ScreenCapture.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { h, type ComponentChild } from 'preact'
import { UIPlugin, Uppy, type UIPluginOptions } from '@uppy/core'
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import ScreenRecIcon from './ScreenRecIcon.tsx'
import RecorderScreen from './RecorderScreen.tsx'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/status-bar/src/Components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { State, Uppy } from '@uppy/core/lib/Uppy'
import type { State, Uppy } from '@uppy/core/lib/Uppy.js'
import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
import type { I18n } from '@uppy/utils/lib/Translator'
import { h } from 'preact'
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/status-bar/src/StatusBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ComponentChild } from 'preact'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { Uppy, State } from '@uppy/core/lib/Uppy'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import { UIPlugin } from '@uppy/core'
import emaFilter from '@uppy/utils/lib/emaFilter'
import getTextDirection from '@uppy/utils/lib/getTextDirection'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/status-bar/src/StatusBarOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin'
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
import type StatusBarLocale from './locale.js'

export interface StatusBarOptions extends UIPluginOptions {
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/status-bar/src/StatusBarUI.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { I18n } from '@uppy/utils/lib/Translator'
import type { Uppy, State } from '@uppy/core/lib/Uppy'
import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
import { h } from 'preact'
import classNames from 'classnames'
import statusBarStates from './StatusBarStates.ts'
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/thumbnail-generator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import isPreviewSupported from '@uppy/utils/lib/isPreviewSupported'
// @ts-ignore untyped
import { rotation } from 'exifr/dist/mini.esm.mjs'

import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/unsplash/src/Unsplash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SearchProviderViews } from '@uppy/provider-views'
import { h, type ComponentChild } from 'preact'

import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
import type { UnknownSearchProviderPluginState } from '@uppy/core/lib/Uppy'
import type { UnknownSearchProviderPluginState } from '@uppy/core/lib/Uppy.js'
import locale from './locale.ts'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We don't want TS to generate types for the package.json
Expand Down
Loading