Skip to content

Commit e14223d

Browse files
committed
Improve type declaration
1 parent 575a3cc commit e14223d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function withEtag<T, P extends RequestParameters>(
2323
paramsWithEtag.headers = {
2424
"If-None-Match": etag,
2525
...(params.headers ?? {}),
26-
} as RequestHeaders;
26+
} satisfies RequestHeaders;
2727

2828
const response = await requester(paramsWithEtag);
2929

0 commit comments

Comments
 (0)