Skip to content

Commit

Permalink
fewer any
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jan 16, 2024
1 parent 3d109d8 commit d7889e0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/DiscardButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { h } from 'preact'
import type { Uppy } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'

interface DiscardButtonProps {
onDiscard: () => void
i18n: Uppy<any, any>['i18n']
i18n: I18n
}

function DiscardButton({ onDiscard, i18n }: DiscardButtonProps): JSX.Element {
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/PermissionsScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Uppy } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'
import { h } from 'preact'

interface PermissionsScreenProps {
icon: () => JSX.Element | null
hasAudio: boolean
i18n: Uppy<any, any>['i18n']
i18n: I18n
}

export default (props: PermissionsScreenProps): JSX.Element => {
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/RecordButton.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { Uppy } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'
import { h } from 'preact'

interface RecordButtonProps {
recording: boolean
onStartRecording: () => void
onStopRecording: () => void
i18n: Uppy<any, any>['i18n']
i18n: I18n
}

export default function RecordButton({
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/RecordingLength.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { h } from 'preact'
import type { Uppy } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'
import formatSeconds from './formatSeconds.ts'

interface RecordingLengthProps {
recordingLengthSeconds: number
i18n: Uppy<any, any>['i18n']
i18n: I18n
}

export default function RecordingLength({
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/RecordingScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable jsx-a11y/media-has-caption */
import { h } from 'preact'
import { useEffect, useRef, type MutableRef } from 'preact/hooks'
import type { Uppy } from '@uppy/core/lib/Uppy'
import type { I18n } from '@uppy/utils/lib/Translator'
import RecordButton from './RecordButton.tsx'
import RecordingLength from './RecordingLength.tsx'
import AudioSourceSelect, {
Expand All @@ -18,7 +18,7 @@ interface RecordingScreenProps extends AudioSourceSelectProps {
supportsRecording: boolean
showAudioSourceDropdown: boolean
onSubmit: () => void
i18n: Uppy<any, any>['i18n']
i18n: I18n
onStartRecording: () => void
onStopRecording: () => void
onStop: () => void
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/SubmitButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { h } from 'preact'
import type { Uppy } from '@uppy/core'
import type { I18n } from '@uppy/utils/lib/Translator'

interface SubmitButtonProps {
onSubmit: () => void
i18n: Uppy<any, any>['i18n']
i18n: I18n
}

function SubmitButton({ onSubmit, i18n }: SubmitButtonProps): JSX.Element {
Expand Down

0 comments on commit d7889e0

Please sign in to comment.