mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix AssetsApi any
This commit is contained in:
parent
9b98a18597
commit
002f606953
@ -1,8 +1,6 @@
|
|||||||
/* eslint-disable react/prop-types */
|
/* eslint-disable react/prop-types */
|
||||||
/* eslint-disable @typescript-eslint/no-floating-promises */
|
/* eslint-disable @typescript-eslint/no-floating-promises */
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* 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 */
|
/* eslint-disable @typescript-eslint/prefer-optional-chain */
|
||||||
import { useState, useCallback, useRef } from 'react'
|
import { useState, useCallback, useRef } from 'react'
|
||||||
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
||||||
|
|||||||
3
types/AssetsApi.d.ts
vendored
3
types/AssetsApi.d.ts
vendored
@ -1,5 +1,4 @@
|
|||||||
export interface AssetsApi {
|
export interface AssetsApi {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
upload(file: Blob, title: string): Promise<{ id: string }>
|
||||||
upload(file: Blob, title: string): any
|
|
||||||
url: string
|
url: string
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user