@cappa/core
Version:
Core Playwright screenshot functionality for Cappa
13 lines (11 loc) • 382 B
text/typescript
import type { ConfigEnv, PossiblePromise, UserConfig } from "./types";
/**
* Type helper to make it easier to use cappa.config.ts, or a function that returns it. The function receives a ConfigEnv object.
*/
export function defineConfig(
options:
| PossiblePromise<UserConfig>
| ((env: ConfigEnv) => PossiblePromise<UserConfig>),
): typeof options {
return options;
}