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:
+4
-4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user