• Version 8.0.12
  • Published
  • 6.03 kB
  • 4 dependencies
  • MIT license


npm i @types/graphql-upload
yarn add @types/graphql-upload
pnpm add @types/graphql-upload


TypeScript definitions for graphql-upload



variable GraphQLUpload

const GraphQLUpload: GraphQLScalarType;


    function graphqlUploadExpress

    graphqlUploadExpress: (uploadOptions?: UploadOptions) => RequestHandler;

      function graphqlUploadKoa

      graphqlUploadKoa: <StateT = DefaultState, ContextT = DefaultContext>(
      uploadOptions?: UploadOptions
      ) => Middleware<StateT, ContextT>;

        function processRequest

        processRequest: (
        request: IncomingMessage,
        response: ServerResponse,
        uploadOptions?: UploadOptions
        ) => Promise<GraphQLOperation | GraphQLOperation[]>;


          class Upload

          class Upload {}

            property file

            file?: FileUpload;

              property promise

              promise: Promise<FileUpload>;


                interface FileUpload

                interface FileUpload {}

                  property encoding

                  encoding: string;

                    property filename

                    filename: string;

                      property mimetype

                      mimetype: string;

                        method createReadStream

                        createReadStream: () => ReadStream;

                          interface GraphQLOperation

                          interface GraphQLOperation {}

                            property operationName

                            operationName?: null | string | undefined;

                              property query

                              query: string;

                                property variables

                                variables?: null | unknown | undefined;

                                  interface UploadOptions

                                  interface UploadOptions {}

                                    property maxFieldSize

                                    maxFieldSize?: number | undefined;

                                      property maxFiles

                                      maxFiles?: number | undefined;

                                        property maxFileSize

                                        maxFileSize?: number | undefined;

                                          Package Files (1)

                                          Dependencies (4)

                                          Dev Dependencies (0)

                                          No dev dependencies.

                                          Peer Dependencies (0)

                                          No peer dependencies.


                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/graphql-upload.

                                          • Markdown
                                          • HTML
                                            <a href="https://www.jsdocs.io/package/@types/graphql-upload"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>