Skip to content

Commit

Permalink
Update typescript overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaAtulTewari committed Aug 13, 2024
1 parent 66ebb09 commit c147312
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workerd/api/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ struct RequestInitializerDict {
JSG_STRUCT_TS_OVERRIDE(RequestInit<Cf = CfProperties> {
headers?: HeadersInit;
body?: BodyInit | null;
cache?: 'no-store';
cf?: Cf;
});

Expand Down Expand Up @@ -923,6 +924,7 @@ class Request: public Body {
JSG_TS_OVERRIDE(<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> {
constructor(input: RequestInfo<CfProperties>, init?: RequestInit<Cf>);
clone(): Request<CfHostMetadata, Cf>;
cache?: "no-store";
get cf(): Cf | undefined;
});
// Use `RequestInfo` and `RequestInit` type aliases in constructor instead of inlining.
Expand Down

0 comments on commit c147312

Please sign in to comment.