mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-17 17:48:06 +00:00
12 lines
420 B
TypeScript
12 lines
420 B
TypeScript
import { DefaultContext, DefaultState, Middleware } from 'koa';
|
|
|
|
export interface UploadOptions {
|
|
maxFieldSize?: number | undefined;
|
|
maxFileSize?: number | undefined;
|
|
maxFiles?: number | undefined;
|
|
}
|
|
|
|
export default function graphqlUploadKoa<StateT = DefaultState, ContextT = DefaultContext>(
|
|
uploadOptions?: UploadOptions,
|
|
): Middleware<StateT, ContextT>; // eslint-disable-line no-unnecessary-generics
|