You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this merge request the docs were fixed, but the typings are still wrong.
To reproduce the problem:
importfsfrom'node:fs';importhttp2from'node:http2';constkey=fs.readFileSync('server.key');constcert=fs.readFileSync('server.crt');constserver=http2.createSecureServer({
key,
cert,// Uncomment the following line to see the issue// @ts-expect-error missing typesstreamResetBurst: Number.MAX_SAFE_INTEGER,streamResetRate: Number.MAX_SAFE_INTEGER,});
If you leave out the // @ts-expect-error comment Typescript will flag an error
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
The typings should be correct and the typescript error suppression comment not needed
What do you see instead?
Typescript flags an error about the documented and valid properties streamResetBurst and streamResetRate
Additional information
No response
The text was updated successfully, but these errors were encountered:
gunters63
changed the title
Wrong typings for http2.createSecureServer: missing streamResetBurst and streamResetRate in options
Wrong Typescript typings for http2.createSecureServer: missing streamResetBurst and streamResetRate in options
Feb 26, 2025
Version
v23.8.0
Platform
Subsystem
No response
What steps will reproduce the bug?
See also: #57169
With this merge request the docs were fixed, but the typings are still wrong.
To reproduce the problem:
If you leave out the // @ts-expect-error comment Typescript will flag an error
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
The typings should be correct and the typescript error suppression comment not needed
What do you see instead?
Typescript flags an error about the documented and valid properties streamResetBurst and streamResetRate
Additional information
No response
The text was updated successfully, but these errors were encountered: