Fixed some typings

This commit is contained in:
Joep 2023-09-10 17:27:42 +02:00
parent cafdfe66f3
commit d791e79cf3
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ export async function list() {
return fetchJSON("/api/shares");
}
export async function get(url: apiUrl) {
export async function get(url: ApiUrl) {
url = removePrefix(url);
return fetchJSON(`/api/share${url}`);
}
@ -16,7 +16,7 @@ export async function remove(hash: string) {
}
export async function create(
url: apiUrl,
url: ApiUrl,
password = "",
expires = "",
unit = "hours"
@ -40,6 +40,6 @@ export async function create(
});
}
export function getShareURL(share: share) {
export function getShareURL(share: IShare) {
return createURL("share/" + share.hash, {}, false);
}

View File

@ -25,7 +25,7 @@ type algo = any;
type inline = any;
interface share {
interface IShare {
expire: any;
hash: string;
path: string;