refactor: use manifest variable name (#1902)

Previously, the `routes` variable name was used. This change makes more
sense as the variable has the `Manifest` type.
This commit is contained in:
Asher Gomez
2023-10-11 10:03:08 +11:00
committed by GitHub
parent ded23e0a94
commit 6ce39b8cee
18 changed files with 37 additions and 37 deletions
+4 -4
View File
@@ -85,17 +85,17 @@ export interface Manifest {
export { ServerContext };
export async function createHandler(
routes: Manifest,
manifest: Manifest,
opts: StartOptions = {},
): Promise<
(req: Request, connInfo?: ServeHandlerInfo) => Promise<Response>
> {
const ctx = await ServerContext.fromManifest(routes, opts);
const ctx = await ServerContext.fromManifest(manifest, opts);
return ctx.handler();
}
export async function start(routes: Manifest, opts: StartOptions = {}) {
const ctx = await ServerContext.fromManifest(routes, {
export async function start(manifest: Manifest, opts: StartOptions = {}) {
const ctx = await ServerContext.fromManifest(manifest, {
...opts,
skipSnapshot: false,
dev: false,