Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cucumber-fp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-fp - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc