alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
28 lines (25 loc) • 655 B
text/typescript
import { AlephaError } from "alepha";
import type {
PagePrimitiveRenderOptions,
PagePrimitiveRenderResult,
} from "../primitives/$page.ts";
/**
* $page methods interface.
*/
export abstract class ReactPageService {
public fetch(
pathname: string,
options: PagePrimitiveRenderOptions = {},
): Promise<{
html: string;
response: Response;
}> {
throw new AlephaError("Fetch is not available for this environment.");
}
public render(
name: string,
options: PagePrimitiveRenderOptions = {},
): Promise<PagePrimitiveRenderResult> {
throw new AlephaError("Render is not available for this environment.");
}
}