@types/cypress-dotenv
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -1,10 +0,25 @@ | ||
// Type definitions for cypress-dotenv 1.2 | ||
// 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'; | ||
declare function dotenvPlugin<T = any>(cypressConfig: T, dotEnvConfig?: DotenvConfigOptions, all?: boolean): T; | ||
// 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; |
{ | ||
"name": "@types/cypress-dotenv", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for cypress-dotenv", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cypress-dotenv", | ||
"license": "MIT", | ||
@@ -11,2 +12,7 @@ "contributors": [ | ||
"githubUsername": "daikiojm" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
} | ||
@@ -25,4 +31,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "81c1f9137b12395d63a07fc4d0e1dd7cae45e2fadd7becbe4fabc1cf796bf1b4", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "90578c91c0fb52f02cbabe8306a6e8251f0b3bf4b0b2bc51841868e07e668a9a", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -9,5 +9,34 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cypress-dotenv. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cypress-dotenv/index.d.ts) | ||
````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: Mon, 03 May 2021 05:01:21 GMT | ||
* Last updated: Wed, 13 Oct 2021 06:31:20 GMT | ||
* Dependencies: [@types/dotenv](https://npmjs.com/package/@types/dotenv) | ||
@@ -17,2 +46,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Daiki Ojima](https://github.com/daikiojm). | ||
These definitions were written by [Daiki Ojima](https://github.com/daikiojm), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4339
21
0
46
0