mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
chore: narrower typing
This commit is contained in:
parent
982584c94d
commit
f2fceda2fb
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
import type { File, User, Url } from '@prisma/client';
|
||||
import type { File, Url } from '@prisma/client';
|
||||
import { bytesToHuman } from './bytes';
|
||||
import Logger from 'lib/logger';
|
||||
import type { UserExtended } from 'middleware/withZipline';
|
||||
|
||||
export type ParseValue = {
|
||||
file?: Omit<Partial<File>, 'password'>;
|
||||
url?: Url;
|
||||
user?: User;
|
||||
user?: Omit<UserExtended, 'password' | 'secret' | 'totpSecret' | 'ratelimit'>;
|
||||
|
||||
link?: string;
|
||||
raw_link?: string;
|
||||
|
|
Loading…
Add table
Reference in a new issue