cypress-xray-plugin
Version:
A Cypress plugin for uploading test results to Xray (test management for Jira)
10 lines (9 loc) • 369 B
TypeScript
import type { MaybeFunction } from "../types/util";
/**
* If the value is a function, evaluates it and returns the result. Otherwise, the value will be
* returned immediately.
*
* @param value - the value
* @returns the value or the callback result
*/
export declare function getOrCall<P extends unknown[], T>(value: MaybeFunction<P, T>, ...args: P): Promise<T>;