mirror of
https://github.com/vale981/apollo-server
synced 2025-03-05 17:51:40 -05:00
Add processRequest to apollo-upload-server types
This commit is contained in:
parent
ef67851997
commit
497b514511
1 changed files with 22 additions and 0 deletions
|
@ -2,4 +2,26 @@ declare module '@apollographql/apollo-upload-server' {
|
|||
import { GraphQLScalarType } from 'graphql';
|
||||
|
||||
export const GraphQLUpload: GraphQLScalarType;
|
||||
|
||||
export interface ApolloUploadOptions {
|
||||
/**
|
||||
* Max allowed non-file multipart form field size in bytes; enough for your queries (default: 1 MB)
|
||||
*/
|
||||
maxFieldSize?: number;
|
||||
/**
|
||||
* Max allowed file size in bytes (default: Infinity)
|
||||
*/
|
||||
maxFileSize?: number;
|
||||
/**
|
||||
* Max allowed number of files (default: Infinity)
|
||||
*/
|
||||
maxFiles?: number;
|
||||
}
|
||||
|
||||
export type Request = any;
|
||||
|
||||
export function processRequest(
|
||||
request: Request,
|
||||
options?: ApolloUploadOptions,
|
||||
): Promise<any>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue