Skip to content

Commit

Permalink
Move quotaAvailableBytes to v19 the first version where it is defined
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Apr 15, 2022
1 parent d845549 commit c9f1d71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/common/OC.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare namespace Nextcloud.Common {
}

interface Files {
FileInfo: FileInfo,
FileInfo: FileInfo
}

enum Permission {
Expand Down Expand Up @@ -91,7 +91,6 @@ declare namespace Nextcloud.Common {
mountType: Nullable<'external-root' | 'shared' | 'shared-root'>
hasPreview: boolean
sharePermissions: Nullable<Permission>
quotaAvailableBytes: number
}

interface OC {
Expand Down
8 changes: 6 additions & 2 deletions lib/v19/OC.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

declare namespace Nextcloud.v19 {

interface OC extends Nextcloud.v18.OC {

type OC = Nextcloud.v18.OC & {
Files: {
FileInfo: {
quotaAvailableBytes: number
}
}
}

interface OCP extends Nextcloud.v18.OCP {
Expand Down

0 comments on commit c9f1d71

Please sign in to comment.