2.0.3 • Published 6 months ago
@types/cypress-dotenv v2.0.3
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
// Type definitions for cypress-dotenv 2.0
// Project: https://github.com/morficus/cypress-dotenv
// Definitions by: Daiki Ojima <https://github.com/daikiojm>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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
- Last updated: Wed, 13 Oct 2021 06:31:20 GMT
- Dependencies: @types/dotenv
- Global values: none
Credits
These definitions were written by Daiki Ojima, and Piotr Błażejewicz.