Skip to content

Commit

Permalink
Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
MNThomson committed Nov 17, 2023
1 parent 807ad51 commit c872114
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/functions/v2/[[name]]/blobs/[reference]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { errorNoData } from "@utils/response";
import { parseParams } from "@utils/url";

export const onRequest: PagesFunction<Env> = async (
context: EventContext<Env, RequestParams, {}>
context: EventContext<Env, RequestParams, Record<string, unknown>>
) => {
const { reference, error } = parseParams(context.params);
if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/functions/v2/[[name]]/manifests/[reference]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { errorNoData } from "@utils/response";
import { parseParams } from "@utils/url";

export const onRequest: PagesFunction<Env> = async (
context: EventContext<Env, RequestParams, {}>
context: EventContext<Env, RequestParams, Record<string, unknown>>
) => {
const { name, reference, error } = parseParams(context.params);
if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/functions/v2/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function seedR2(env: Env) {
}

export const onRequestGet: PagesFunction<Env> = async (
context: EventContext<Env, "", {}>
context: EventContext<Env, "", Record<string, unknown>>
) => {
if (context.env.ENVIRONMENT !== "development") {
return new Response("", { status: 404 });
Expand Down
2 changes: 1 addition & 1 deletion src/pages/version.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const prerender = true;

export async function get() {
export function get(): Record<string, string> {
return {
body: import.meta.env.PUBLIC_GIT_SHA,
};
Expand Down

0 comments on commit c872114

Please sign in to comment.