mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-06 14:10:13 +01:00
Add validator
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
1fb3076115
commit
c7d2325bf9
2 changed files with 189 additions and 0 deletions
9
src/types.d.ts
vendored
9
src/types.d.ts
vendored
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue