Skip to content

Any plans for DefinitelyTyped support? #257

Open
@dvargas92495

Description

@dvargas92495

Is your feature request related to a problem? Please describe.
I was following the Cypress Full Stack Code Coverage guide and wanted to instrument my express back end by doing the following in my index.ts file:

import express from "express";
import cypressCodeCoverage from "@cypress/code-coverage/middleware/express";

const app = express();
cypressCodeCoverage(app);

I get the "Try npm install @types/cypress__code-coverage if it exists or add a new declaration (.d.ts) file containing declare module '@cypress/code-coverage/middleware/express';" error. When I tried to install the DefinitelyTyped module, I realized one does not exist for @types/cypress__code-coverage.

Describe the solution you'd like
Either a new package in the DefinitelyTyped repo for @types/cypress_code-coverage, or for the package itself to natively support typescript for back end instrumentation.

Describe alternatives you've considered
I'm happy to workaround this in the mean time by adding a global type declaration file for my package. I just wanted to see if you had any plans to support this or if you'd be okay with me putting up a PR for it (and see which approach you preferred)!

Additional context
Let me know if you need anything else!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions