/** * Return type is `any` to support different Vitest and Vite versions. */ import type { ObjectPlus } from 'type-plus' import { type ComparisonMethod, type VisOptions, vis } from 'vitest-plugin-vis/config' import { NAME } from '../shared/constants.ts' export function storybookVis( options?: ObjectPlus.Omit, 'preset'> | undefined, ): any { return { ...vis({ ...options, preset: 'custom', }), name: NAME, } }