stage3: add image uploads
This commit is contained in:
11 files changed
+124
-57
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import { LemmyHttp } from 'lemmy-js-client'
|
||||
import type { BaseClient } from '../base'
|
||||
import type { BaseClient, ClientType } from '../base'
|
||||
import { fromGetPosts, toListingType } from './rewrite'
|
||||
import type { ClientType } from '../lemmy.svelte'
|
||||
|
||||
export class LemmyClient implements BaseClient {
|
||||
type: ClientType = { name: 'lemmy', baseUrl: '/api/v3' }
|
||||
@@ -472,4 +471,9 @@ export class LemmyClient implements BaseClient {
|
||||
): ReturnType<BaseClient['blockInstance']> {
|
||||
return await this.#client.blockInstance(...params)
|
||||
}
|
||||
async uploadImage(
|
||||
...params: Parameters<BaseClient['uploadImage']>
|
||||
): ReturnType<BaseClient['uploadImage']> {
|
||||
return await this.#client.uploadImage(...params)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user