This commit is contained in:
2024-03-04 15:15:47 +01:00
parent 3036927a45
commit 1698abe2eb
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { Adapters, BASE, create, FileDTO, Note, NoteMeta } from '@cryptgeon/shar
import mime from 'mime'
import { AES, Hex } from 'occulto'
type UploadOptions = Pick<Note, 'views' | 'expiration'> & { password?: string }
export type UploadOptions = Pick<Note, 'views' | 'expiration'> & { password?: string }
export async function upload(input: string | string[], options: UploadOptions): Promise<string> {
const { password, ...noteOptions } = options