Skip to content

Commit

Permalink
Update links to the main repository
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa authored Nov 29, 2024
1 parent 6c7edac commit c0f5da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workerd/api/url-standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ class URLSearchParams: public jsg::Object {
if (!flags.getSpecCompliantUrl()) {
// This is a hack. The spec-compliant URLSearchParams type is used in
// the Body constructor, see:
// https://github.com/balusch/workerd/tree/main/src/workerd/api/http.h#L255
// https://github.com/cloudflare/workerd/blob/03b4fa4f0c3766441bcb0267dcc78221c1bd2238/src/workerd/api/http.h#L255
// This means that when the TypeScript generation scripts are visiting root types for inclusion,
// we'll always visit the spec-compliant type even if we have the
// "url-standard" flag disabled. Rather than updating those usages based
// on which flags are enabled, we just delete the spec compliant
// declaration in an override if "url-standard" is disabled.
// We do the same for the non-spec-compliant URLSearchParams, see:
// https://github.com/balusch/workerd/tree/main/src/workerd/api/url.h#L219
// https://github.com/cloudflare/workerd/blob/03b4fa4f0c3766441bcb0267dcc78221c1bd2238/src/workerd/api/url.h#L219
JSG_TS_OVERRIDE(type URLSearchParams = never);
} else if (flags.getUrlSearchParamsDeleteHasValueArg()) {
JSG_TS_OVERRIDE(URLSearchParams {
Expand Down

0 comments on commit c0f5da8

Please sign in to comment.