Skip to content

Commit d748980

Browse files
committed
Fix ts complaints
1 parent af427c5 commit d748980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/logfire-cf-workers/src/exportTailEventsToLogfire.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { resolveBaseUrl } from '@pydantic/logfire-api'
22

33
// simplified interface from CF
44
interface TraceItem {
5+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
56
logs: { message: any[] }[]
67
}
78

89
export async function exportTailEventsToLogfire(events: TraceItem[], env: Record<string, string | undefined>) {
9-
const token = env.LOGFIRE_TOKEN as string | undefined
10+
const token = env.LOGFIRE_TOKEN
1011
if (!token) {
1112
console.warn('No token provided, not sending payload to Logfire')
1213
return

0 commit comments

Comments
 (0)