Skip to content

Commit

Permalink
fix AssetsApi any
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Nov 24, 2024
1 parent 9b98a18 commit 002f606
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/Components/Profile/Subcomponents/AvatarWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable react/prop-types */
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/prefer-optional-chain */
import { useState, useCallback, useRef } from 'react'
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
Expand Down
3 changes: 1 addition & 2 deletions types/AssetsApi.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export interface AssetsApi {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
upload(file: Blob, title: string): any
upload(file: Blob, title: string): Promise<{ id: string }>
url: string
}

0 comments on commit 002f606

Please sign in to comment.