diff options
author | Robin Appelman <robin@icewind.nl> | 2019-01-29 16:29:53 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-02-21 17:04:52 +0300 |
commit | b1d1ec3368c4a5b02f8af6dfdcaa03f34dc2928f (patch) | |
tree | 06317e53953a25e03b899df736c19eb5a05d9c21 | |
parent | 4ca390bf5841a88950f7b211b0da1a66fd745f8e (diff) |
update nextcloud.d.ts
-rw-r--r-- | js/Nextcloud.d.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/Nextcloud.d.ts b/js/Nextcloud.d.ts index df503a94..e138f4a2 100644 --- a/js/Nextcloud.d.ts +++ b/js/Nextcloud.d.ts @@ -16,7 +16,7 @@ declare namespace OC { function confirmHtml(text: string, title: string, callback: (result: boolean) => void, modal?: boolean): void; - function prompt(text: string, title: string, callback: (result: string) => void, modal?: boolean, name?: string, password?: boolean): void; + function prompt(text: string, title: string, callback: (ok: boolean, result: string) => void, modal?: boolean, name?: string, password?: boolean): void; function filepicket(title: string, callback: (result: string | string[]) => void, multiselect?: boolean, mimetypeFilter?: string, modal?: boolean): void; } @@ -44,8 +44,12 @@ declare namespace OC { function linkToOCS(service: string, version: number): string; + function linkToRemote(path: string): string; + function imagePath(app: string, file: string): string; + function filePath(app: string, type: string, file: string): string; + const PERMISSION_CREATE = 4; const PERMISSION_READ = 1; const PERMISSION_UPDATE = 2; |