diff --git a/components/carousel/module/CarouselAgnostic.vue b/components/carousel/module/CarouselAgnostic.vue index 67cc2ffbf1..d94fb2d902 100644 --- a/components/carousel/module/CarouselAgnostic.vue +++ b/components/carousel/module/CarouselAgnostic.vue @@ -49,6 +49,7 @@ import 'keen-slider/keen-slider.min.css' import { useKeenSlider } from 'keen-slider/vue' import { NeoIcon } from '@kodadot1/brick' import { CarouselWheelsPlugin } from '../utils/useCarousel' +import type { CarouselNFT } from '@/components/base/types' type CarouseBreakpoints = '640px' | '768px' | '1024px' | '1280px' | '1540px' @@ -64,7 +65,7 @@ const SYNC_CONFIG_DEBOUNCE_AMOUNT = 1 // anything bellow this makes the carousel const DEFAULT_SLIDES_CONFIG = { perView: 3, spacing: 16 } const props = defineProps<{ - items: any[] + items: CarouselNFT[] step?: number breakpoints?: CarouseBreakpointsConfig config?: CarouselConfig diff --git a/components/collection/CollectionGrid.vue b/components/collection/CollectionGrid.vue index 6aab39dc25..52ada275c5 100644 --- a/components/collection/CollectionGrid.vue +++ b/components/collection/CollectionGrid.vue @@ -93,7 +93,7 @@ const resetPage = useDebounceFn(() => { }, 1000) const buildSearchParam = (): Record[] => { - const params: any[] = [] + const params: Record[] = [] if (searchQuery.search) { params.push({ name_containsInsensitive: searchQuery.search, @@ -206,7 +206,7 @@ const handleResult = ( return } - const newCollections = data.collectionEntities.map((e: any) => ({ + const newCollections = data.collectionEntities.map((e: Collection) => ({ ...e, })) diff --git a/components/create/CreateCollection.vue b/components/create/CreateCollection.vue index 5a12402763..cc714441ed 100644 --- a/components/create/CreateCollection.vue +++ b/components/create/CreateCollection.vue @@ -188,7 +188,7 @@ diff --git a/components/profile/activityTab/History.vue b/components/profile/activityTab/History.vue index b426f34c58..26f07a7e9e 100644 --- a/components/profile/activityTab/History.vue +++ b/components/profile/activityTab/History.vue @@ -162,7 +162,7 @@ export interface Event { Date: string Time: string Block: string - Item?: any + Item?: Record Percentage?: number } diff --git a/components/series/types.ts b/components/series/types.ts index f8fdca4520..ccb4b6ed9d 100644 --- a/components/series/types.ts +++ b/components/series/types.ts @@ -20,7 +20,7 @@ export type BuyHistory = { export type RowSeries = { id: string unique: number - image: any + image: string metadata: string sold: number total: number diff --git a/components/shared/ResponsiveTable.vue b/components/shared/ResponsiveTable.vue index e56db47aeb..129480bd93 100644 --- a/components/shared/ResponsiveTable.vue +++ b/components/shared/ResponsiveTable.vue @@ -38,7 +38,7 @@ const { variant, desktop } = useResponsive(container) withDefaults( defineProps<{ - items: any[] + items: [] noResultsMain: string noResultsSub: string showNoResults: boolean diff --git a/components/shared/audioPlayer/Waveform.vue b/components/shared/audioPlayer/Waveform.vue index 721b5c714e..f0c392ed78 100644 --- a/components/shared/audioPlayer/Waveform.vue +++ b/components/shared/audioPlayer/Waveform.vue @@ -26,7 +26,7 @@ const colors = { }, } -const initWaveform = (media: any) => { +const initWaveform = (media: HTMLMediaElement) => { wavesurfer.value = WaveSurfer.create({ container: wavesurferWrapper.value, height: 33, diff --git a/components/shared/filters/modules/StatusFilter.vue b/components/shared/filters/modules/StatusFilter.vue index ce96369c1a..0c22e5699d 100644 --- a/components/shared/filters/modules/StatusFilter.vue +++ b/components/shared/filters/modules/StatusFilter.vue @@ -90,7 +90,7 @@ const owned set: value => exploreFiltersStore.setOwned(value), }) -const applyToUrl = (queryCondition: { [key: string]: any }) => { +const applyToUrl = (queryCondition: { [key: string]: string }) => { replaceURL(queryCondition) emit('resetPage') } diff --git a/components/shared/nftCard/NftCard.vue b/components/shared/nftCard/NftCard.vue index 7285cf17f7..b03d0c0536 100644 --- a/components/shared/nftCard/NftCard.vue +++ b/components/shared/nftCard/NftCard.vue @@ -110,7 +110,7 @@