@types/graphql-upload

  • Version 8.0.9
  • Published
  • 5.96 kB
  • 4 dependencies
  • MIT license

Install

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

Overview

TypeScript definitions for graphql-upload

Index

Variables

variable GraphQLUpload

const GraphQLUpload: any;

    Functions

    function graphqlUploadExpress

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

      function graphqlUploadKoa

      graphqlUploadKoa: <StateT = any, ContextT = any>(
      uploadOptions?: UploadOptions
      ) => any;

        function processRequest

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

          Interfaces

          interface FileUpload

          interface FileUpload {}

            property encoding

            encoding: string;

              property filename

              filename: string;

                property mimetype

                mimetype: string;

                  method createReadStream

                  createReadStream: () => any;

                    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;

                                    Type Aliases

                                    type Upload

                                    type Upload = Promise<FileUpload>;

                                      Package Files (1)

                                      Dependencies (4)

                                      Dev Dependencies (0)

                                      No dev dependencies.

                                      Peer Dependencies (0)

                                      No peer dependencies.

                                      Badge

                                      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
                                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/graphql-upload)
                                      • 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>