UNPKG

@cappa/core

Version:

Core Playwright screenshot functionality for Cappa

13 lines (11 loc) 431 B
import type { PossiblePromise, UserConfig } from "./types"; /** * Type helper to make it easier to use vite.config.ts accepts a direct UserConfig object, or a function that returns it. The function receives a ConfigEnv object. */ export function defineConfig( options: | PossiblePromise<UserConfig | Array<UserConfig>> | (() => PossiblePromise<UserConfig | Array<UserConfig>>), ): typeof options { return options; }