Created
January 7, 2022 18:26
-
-
Save ScreamZ/69e08b3a8f08db7d1eb93cf0fc4d6dc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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