Home > @uniformdev/canvas-next > UniformGetServerSideProps

UniformGetServerSideProps type

Signature:

type UniformGetServerSideProps<P extends {
    [key: string]: any;
} = {
    [key: string]: any;
}, Q extends ParsedUrlQuery = ParsedUrlQuery, D extends PreviewData = PreviewData> = (context: GetServerSidePropsContext<Q, D>, composition: RootComponentInstance | undefined) => Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>;

References: RootComponentInstance