Skip to content

Minor regression in types params names with 4.20240903.0 #2652

@Cherry

Description

@Cherry

Diff: https://npmdiff.dev/@cloudflare%2fworkers-types/4.20240821.1/4.20240903.0/package/experimental/index.ts
Raw diff: Cloudflare-Mining/Cloudflare-Datamining@66e9584#diff-498f7d22754cd92e5654b3be0adcae3df0c297abe440099d42dbc8cf43af66fd

FixedLengthStream previously had named paramaters:

declare class FixedLengthStream extends IdentityTransformStream {
  constructor(
    expectedLength: number | bigint,
    queuingStrategy?: IdentityTransformStreamQueuingStrategy,
  );
}

Now these are more generic with just param1 and param2:

declare class FixedLengthStream extends IdentityTransformStream {
  constructor(
    param1: number | bigint,
    param2?: IdentityTransformStreamQueuingStrategy,
  );
}

A few more methods/classes had the same thing occur including:

  • URL.canParse
  • URL.parse
  • IdentityTransformStreamQueuingStrategy
  • URLSearchParams
  • URLSearchParams.append
  • URLSearchParams.delete
  • URLSearchParams.get
  • URLSearchParams.getAll
  • URLSearchParams.has
  • URLSearchParams.set

Metadata

Metadata

Assignees

Labels

typesRelated to @cloudflare/workers-types

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions