@payfit/unity-components
Version:
13 lines (12 loc) • 694 B
TypeScript
import { StoryContext } from '@storybook/react-vite';
export interface TanstackRouterSourceOverrides {
/** Source of the root route component, for example `function RootLayout() { ... }`. */
rootRoute?: string;
/** Source of the story render when Storybook cannot expose its JSX source. */
renderSource?: string;
/** Route component sources indexed by their configured route path. */
routes?: Record<string, string>;
/** Additional named exports to include in the TanStack Router import. */
imports?: string[];
}
export declare const generateTanstackRouterSource: (code: string, context: StoryContext, sourceOverrides?: TanstackRouterSourceOverrides) => string;