this repo has no description
at main 15 lines 475 B view raw
1import { GenericPage } from '@jet-app/app-store/api/models'; 2import type { Opt } from '@jet/environment'; 3 4export class ErrorPage extends GenericPage { 5 constructor({ error }: { error: Opt<Error> }) { 6 super([]); 7 this.error = error; 8 } 9 10 // Used in our type guards to narrow a `Page` down to a `ErrorPage` 11 pageType: string = 'errorPage'; 12 13 // The browser `Error`, used to determine which message to display to the user 14 error: Opt<Error>; 15}