Revert "Fix TypeScript type errors across multiple files"

This reverts commit a3733b0424.
This commit is contained in:
Francis Cao committed 2026-02-16 16:20:04 -08:00
1 parent a3733b0424
commit 2260520ae5
12 files changed
+15 -38

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ export const KAFKA = 'kafka';
export const KAFKA_PRODUCER = 'kafka-producer';
// Fixes issue with converting bigint values
(BigInt.prototype as any).toJSON = function () {
BigInt.prototype.toJSON = function () {
return Number(this);
};
+1 -1
View File
@@ -10,7 +10,7 @@ import {
export function getFragmentChildren(children: ReactNode) {
return (children as ReactElement)?.type === Fragment
? (children as ReactElement<{ children: ReactNode }>).props.children
? (children as ReactElement).props.children
: children;
}
+1 -1
View File
@@ -16,7 +16,7 @@ export async function parseRequest(
const url = new URL(request.url);
let query = Object.fromEntries(url.searchParams);
let body = await getJsonBody(request);
let error: (() => Response) | undefined;
let error: () => undefined | undefined;
let auth = null;
if (schema) {