mirror of https://github.com/sylv/micro.git
23 lines
496 B
TypeScript
23 lines
496 B
TypeScript
import type { FC } from 'react';
|
|
import type { SSRData } from '@urql/preact';
|
|
|
|
// https://vike.dev/pageContext#typescript
|
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
declare global {
|
|
namespace Vike {
|
|
interface PageContext {
|
|
Page: FC<PageProps>;
|
|
state?: SSRData;
|
|
pageHtml?: string;
|
|
cookies?: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
export type PageProps = {
|
|
routeParams: Record<string, string | undefined>;
|
|
};
|
|
|
|
// Tell TypeScript this file isn't an ambient module
|
|
export {};
|