webapp/src/renderer/types.ts

16 lines
388 B
TypeScript
Raw Normal View History

import type { PageContextBuiltIn } from 'vite-plugin-ssr/types'
2023-02-17 09:21:02 +00:00
import type { PageProps } from '../pages/types'
import type { Component } from 'solid-js'
export type PageContext = PageContextBuiltIn & {
Page: (pageProps: PageProps) => Component
pageProps: PageProps
lng: string
// FIXME typing
cookies: any
documentProps?: {
title?: string
description?: string
}
}