@types/cypress-dotenv
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/cypress-dotenv

Summary

This package contains type definitions for cypress-dotenv (https://github.com/morficus/cypress-dotenv).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cypress-dotenv.

index.d.ts

import { DotenvConfigOptions } from "dotenv";

// Cypress type
interface CypressConfig {
    [key: string]: any;
}

type EnhancedConfig<T extends CypressConfig> = T & {
    env?: {
        [key: string]: unknown;
    };
};

declare function dotenvPlugin<T extends CypressConfig>(
    cypressConfig: T,
    dotEnvConfig?: DotenvConfigOptions,
    all?: boolean,
): EnhancedConfig<T>;

export = dotenvPlugin;

Additional Details

Credits

These definitions were written by Daiki Ojima, and Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cypress-dotenv

Weekly Downloads

14,609

Version

2.0.3

License

MIT

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • types