Skip to content

Instantly share code, notes, and snippets.

@ScreamZ
Created January 7, 2022 18:26
Show Gist options
  • Save ScreamZ/69e08b3a8f08db7d1eb93cf0fc4d6dc9 to your computer and use it in GitHub Desktop.
Save ScreamZ/69e08b3a8f08db7d1eb93cf0fc4d6dc9 to your computer and use it in GitHub Desktop.
import type { NotAuthenticatedLayoutArgs } from "modules/ui/layouts/NotAuthenticatedLayout";
import type { OnboardingLayoutArgs } from "modules/ui/layouts/OnboardingLayout";
import type { NextPage } from "next";
import type { AppProps } from "next/app";
interface LayoutArgs {
layout?: { type: string };
}
export interface CodingSparkPageLayoutProps extends LayoutArgs {
layout?: NotAuthenticatedLayoutArgs | OnboardingLayoutArgs | { type: "none" };
}
export type CodingSparkNextPage<P = Record<string, never>, IP = P> = NextPage<P, IP> & CodingSparkPageLayoutProps;
export type CodingSparkAppProps = AppProps & {
Component: CodingSparkNextPage;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment