Skip to content

Commit a79c03e

Browse files
committed
Pin Bun to 1.3.5 in CI, fix FetchFn types
1 parent 59688eb commit a79c03e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Bun
2626
uses: oven-sh/setup-bun@v2
2727
with:
28-
bun-version: latest
28+
bun-version: 1.3.5
2929

3030
- name: Install dependencies
3131
run: bun install --frozen-lockfile

src/search/openlibrary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import { DEFAULT_TIMEOUT, DEFAULT_USER_AGENT } from './types'
1414
const SEARCH_API = 'https://openlibrary.org/search.json'
1515

1616
/**
17-
* Fetch function type - compatible with both HttpResponse and standard Response.
17+
* Fetch function type - returns HttpResponse which standard Response satisfies.
1818
*/
19-
type FetchFn = (url: string, init?: RequestInit) => Promise<HttpResponse | Response>
19+
type FetchFn = (url: string, init?: RequestInit) => Promise<HttpResponse>
2020

2121
/**
2222
* Configuration for Open Library search.

src/search/wikidata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import {
2020
const SPARQL_ENDPOINT = 'https://query.wikidata.org/sparql'
2121

2222
/**
23-
* Fetch function type - compatible with both HttpResponse and standard Response.
23+
* Fetch function type - returns HttpResponse which standard Response satisfies.
2424
*/
25-
type FetchFn = (url: string, init?: RequestInit) => Promise<HttpResponse | Response>
25+
type FetchFn = (url: string, init?: RequestInit) => Promise<HttpResponse>
2626

2727
/**
2828
* Configuration for Wikidata search.

0 commit comments

Comments
 (0)