Fix TypeScript type errors across multiple files

This commit is contained in:
Mike Cao committed 2026-02-05 21:25:46 -08:00
1 parent 860e6390f1
commit a3733b0424
12 files changed
+38 -15

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.toJSON = function () {
(BigInt.prototype as any).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).props.children
? (children as ReactElement<{ children: ReactNode }>).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: () => undefined | undefined;
let error: (() => Response) | undefined;
let auth = null;
if (schema) {