Add validator

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2024-02-14 03:21:11 +08:00
parent 1fb3076115
commit c7d2325bf9
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
2 changed files with 189 additions and 0 deletions

9
src/types.d.ts vendored
View file

@ -34,4 +34,13 @@ export interface Env {
ENDPOINT: string;
LARGE_ENDPOINT?: string;
LARGE_DOWNLOAD_ENDPOINT?: string;
}
export interface PasteInit {
content: File | string; // field u
title?: string; // field title
mime?: string; // field mime
paste_type?: PASTE_TYPES; // field paste_type (Default: paste)
pass?: string; // field pass
read_limit?: number; // field number
}