Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
refactor: remove Environment type
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jan 19, 2024
1 parent d713ee8 commit 346dd68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { get_config } from '@/config'
import type { Environment } from '@/types'

async function main(_: Request, environment: Environment): Promise<Response> {
async function main(_: Request, environment: Record<string, unknown>): Promise<Response> {
const config = get_config(environment)

return fetch(config.ANISETTE_ENDPOINT, {
headers: {
Authorization: `Bearer ${config.HF_TOKEN}`
}
headers: { Authorization: `Bearer ${config.HF_TOKEN}` }
})
}

Expand Down
3 changes: 0 additions & 3 deletions src/types/environment.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/types/index.ts

This file was deleted.

0 comments on commit 346dd68

Please sign in to comment.