Skip to content

Commit

Permalink
fix: Do not export the declaration of window.OC
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jun 14, 2023
1 parent df1a4f9 commit c4cbc6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/index.ts
Expand Up @@ -33,14 +33,6 @@ export { Node } from './files/node'
export { Permission, parseWebdavPermissions } from './permissions'
export { FileAction, registerFileAction, getFileActions } from './fileAction'

declare global {
interface Window {
OC: any;
_nc_newfilemenu: NewFileMenu | undefined;
_nc_fileactions: FileAction[] | undefined;
}
}

/**
* Add a new menu entry to the upload manager menu
*/
Expand Down
10 changes: 10 additions & 0 deletions lib/oc.d.ts
@@ -0,0 +1,10 @@
/// <reference types="@nextcloud/typings" />

import { FileAction } from "./fileAction";
import { NewFileMenu } from "./newFileMenu";

declare interface Window {
OC: Nextcloud.v25.OC | Nextcloud.v26.OC | Nextcloud.v27.OC;
_nc_newfilemenu: NewFileMenu | undefined;
_nc_fileactions: FileAction[] | undefined;
}

0 comments on commit c4cbc6a

Please sign in to comment.