cucumber-fp
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,5 +1,6 @@ | ||
import { DeepReadonly } from 'ts-essentials'; | ||
declare type StepDefParam = any; | ||
declare type StepDef<C> = (ctx: Readonly<C>, ...args: StepDefParam[]) => C | Promise<C>; | ||
declare type StepDef<C> = (ctx: DeepReadonly<C>, ...args: StepDefParam[]) => DeepReadonly<C> | Promise<DeepReadonly<C>>; | ||
declare type ParamsAndCb<C> = [...args: StepDefParam, cb: Callback<C>]; | ||
declare type StepDefCb<C> = (ctx: Readonly<C>, ...args: ParamsAndCb<C>) => void; | ||
declare type StepDefCb<C> = (ctx: DeepReadonly<C>, ...args: ParamsAndCb<C>) => void; | ||
declare type DefineStep<C> = (pattern: string | RegExp, fn: StepDef<C>) => void; | ||
@@ -21,5 +22,5 @@ declare type DefineStepCb<C> = (pattern: string | RegExp, fn: StepDefCb<C>) => void; | ||
}; | ||
declare type Tap<C> = (fn: (ctx: Readonly<C>, ...args: StepDefParam[]) => unknown) => (ctx: Readonly<C>, ...args: StepDefParam[]) => C; | ||
export declare const withContext: <C>(initialCtx: C) => WithContext<C>; | ||
declare type Tap<C> = (fn: (ctx: DeepReadonly<C>, ...args: StepDefParam[]) => unknown) => (ctx: DeepReadonly<C>, ...args: StepDefParam[]) => C; | ||
export declare const withContext: <C>(initialCtx: DeepReadonly<C>) => WithContext<C>; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "cucumber-fp", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Cucumber.js with functional programming-style step definitions", | ||
@@ -28,2 +28,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"ts-essentials": "^7.0.1", | ||
"typescript": "^4.1.3", | ||
@@ -30,0 +31,0 @@ "util-arity": "^1.1.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10883
83
4
+ Addedts-essentials@^7.0.1
+ Addedts-essentials@7.0.3(transitive)