@types/supertest

  • Version 6.0.2
  • Published
  • 8.04 kB
  • 2 dependencies
  • MIT license

Install

npm i @types/supertest
yarn add @types/supertest
pnpm add @types/supertest

Overview

TypeScript definitions for supertest

Index

Variables

variable supertest

const supertest: supertest.SuperTestStatic;

    Interfaces

    interface Agent

    interface Agent extends stAgent {}

      interface Options

      interface Options {}

        property http2

        http2?: boolean;

          interface SuperTestStatic

          interface SuperTestStatic {}

            property agent

            agent: typeof stAgent &
            ((app?: App, options?: STAgentOptions) => InstanceType<typeof stAgent>);

              property Test

              Test: typeof STest;

                call signature

                (app: App, options?: STAgentOptions): stAgent;

                  interface Test

                  interface Test extends STest {}

                    Type Aliases

                    type AgentOptions

                    type AgentOptions = STAgentOptions;

                      type CallbackHandler

                      type CallbackHandler = superagent.CallbackHandler;

                        type Request

                        type Request = superagent.SuperAgentRequest;

                          type Response

                          type Response = superagent.Response;

                            type SuperAgentTest

                            type SuperAgentTest = SuperTest<Test>;

                              type SuperTest

                              type SuperTest<Req extends Test = Test> = superagent.SuperAgent<Req>;

                                Package Files (1)

                                Dependencies (2)

                                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/supertest.

                                • Markdown
                                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/supertest)
                                • HTML
                                  <a href="https://www.jsdocs.io/package/@types/supertest"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>