diff --git a/packages/cloudflare/test/fixtures/wasm-directory/src/pages/index.ts b/packages/cloudflare/test/fixtures/wasm-directory/src/pages/index.ts index 2c9ff6d4..9423d2ae 100644 --- a/packages/cloudflare/test/fixtures/wasm-directory/src/pages/index.ts +++ b/packages/cloudflare/test/fixtures/wasm-directory/src/pages/index.ts @@ -1,4 +1,4 @@ -import { type APIContext, type EndpointOutput } from 'astro'; +import { type APIContext } from 'astro'; // @ts-ignore import mod from '../util/add.wasm?module'; @@ -7,7 +7,7 @@ const addModule: any = new WebAssembly.Instance(mod); export async function GET( context: APIContext -): Promise { +): Promise { return new Response(JSON.stringify({ answer: addModule.exports.add(40, 2) }), { status: 200, diff --git a/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/deeply/nested/route.ts b/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/deeply/nested/route.ts index 20797c0c..bbb68c80 100644 --- a/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/deeply/nested/route.ts +++ b/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/deeply/nested/route.ts @@ -1,9 +1,9 @@ -import { type APIContext, type EndpointOutput } from 'astro'; +import { type APIContext } from 'astro'; import { add } from '../../../util/add'; export async function GET( context: APIContext -): Promise { +): Promise { return new Response(JSON.stringify({ answer: add(80, 4) }), { status: 200, diff --git a/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/index.ts b/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/index.ts index b6417dde..9e5898a3 100644 --- a/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/index.ts +++ b/packages/cloudflare/test/fixtures/wasm-function-per-route/src/pages/index.ts @@ -1,9 +1,9 @@ -import { type APIContext, type EndpointOutput } from 'astro'; +import { type APIContext } from 'astro'; import { add } from '../util/add'; export async function GET( context: APIContext -): Promise { +): Promise { return new Response(JSON.stringify({ answer: add(40, 2) }), { status: 200, diff --git a/packages/cloudflare/test/fixtures/wasm/src/pages/add/[a]/[b].ts b/packages/cloudflare/test/fixtures/wasm/src/pages/add/[a]/[b].ts index 130b2b2a..0f09faa0 100644 --- a/packages/cloudflare/test/fixtures/wasm/src/pages/add/[a]/[b].ts +++ b/packages/cloudflare/test/fixtures/wasm/src/pages/add/[a]/[b].ts @@ -1,4 +1,4 @@ -import { type APIContext, type EndpointOutput } from 'astro'; +import { type APIContext } from 'astro'; // @ts-ignore import mod from '../../../util/add.wasm?module'; @@ -8,7 +8,7 @@ export const prerender = false; export async function GET( context: APIContext -): Promise { +): Promise { const a = Number.parseInt(context.params.a!); const b = Number.parseInt(context.params.b!); return new Response(JSON.stringify({ answer: addModule.exports.add(a, b) }), { diff --git a/packages/cloudflare/test/fixtures/wasm/src/pages/hybrid.ts b/packages/cloudflare/test/fixtures/wasm/src/pages/hybrid.ts index 7bb470df..f1c3a0d5 100644 --- a/packages/cloudflare/test/fixtures/wasm/src/pages/hybrid.ts +++ b/packages/cloudflare/test/fixtures/wasm/src/pages/hybrid.ts @@ -1,4 +1,4 @@ -import { type APIContext, type EndpointOutput } from 'astro'; +import { type APIContext } from 'astro'; // @ts-ignore import mod from '../util/add.wasm?module'; @@ -6,7 +6,7 @@ const addModule: any = new WebAssembly.Instance(mod); export async function GET( context: APIContext -): Promise { +): Promise { return new Response(JSON.stringify({ answer: addModule.exports.add(20, 1) }), { status: 200, headers: {