UNPKG

vite-plugin-react18-pages

Version:

<p> <a href="https://www.npmjs.com/package/vite-plugin-react-pages" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/vite-plugin-react-pages.svg" alt="npm package" /></a> </p>

31 lines (26 loc) 690 B
// users can import type { PagesStaticData } from "vite-plugin-react-pages/clientTypes" import React from 'react' export * from './theme.doc.d' export interface PagesInternal { readonly [routePath: string]: { readonly data: () => Promise<PageLoaded> readonly staticData: any } } // the result of tsInfo extraction export interface TsInterfaceInfo { name: string // commentText: string description: string // fullText: string properties: TsInterfacePropertyInfo[] } export interface TsInterfacePropertyInfo { name: string // commentText: string type: string description: string defaultValue: string | undefined // fullText: string optional: boolean }