diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-02-22 10:20:21 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-02-23 14:12:14 +0100 |
commit | 7b9581129014f0c430272b8288ed9e45c0362499 (patch) | |
tree | c2ca8e55a17159d23ab5f3b8243c1a43997972d0 /apps/files_sharing/src/services/SharingService.ts | |
parent | f1c79cd264ebadd0c191bd29abb9280c49aec3da (diff) | |
download | nextcloud-server-7b9581129014f0c430272b8288ed9e45c0362499.tar.gz nextcloud-server-7b9581129014f0c430272b8288ed9e45c0362499.zip |
chore(files_sharing): use `OCSResponse` from `@nextcloud/typings`
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/services/SharingService.ts')
-rw-r--r-- | apps/files_sharing/src/services/SharingService.ts | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/files_sharing/src/services/SharingService.ts b/apps/files_sharing/src/services/SharingService.ts index 2f167dab535..41861c5d3ea 100644 --- a/apps/files_sharing/src/services/SharingService.ts +++ b/apps/files_sharing/src/services/SharingService.ts @@ -21,6 +21,7 @@ */ /* eslint-disable camelcase, n/no-extraneous-import */ import type { AxiosPromise } from 'axios' +import type { OCSResponse } from '@nextcloud/typings/ocs' import { Folder, File, type ContentsWithRoot } from '@nextcloud/files' import { generateOcsUrl, generateRemoteUrl } from '@nextcloud/router' @@ -31,17 +32,6 @@ import logger from './logger' export const rootPath = `/files/${getCurrentUser()?.uid}` -export type OCSResponse<T> = { - ocs: { - meta: { - status: string - statuscode: number - message: string - }, - data: T[] - } -} - const headers = { 'Content-Type': 'application/json', } |