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
This appears to be an oversight in the node.js documentation. Tracking issue nodejs/node#14118 .
The first part of the fix involves the Uint8Array case for Buffer.from:
staticfrom(value: Uint8Array): Buffer;
The second part involves the original Buffer case. Since Buffer extends Uint8Array, the Uint8Array case also covers Buffer, so it might make sense to just remove static from(value: Buffer): Buffer; entirely
The text was updated successfully, but these errors were encountered:
This appears to be an oversight in the node.js documentation. Tracking issue nodejs/node#14118 .
The first part of the fix involves the Uint8Array case for
Buffer.from
:The second part involves the original Buffer case. Since Buffer extends Uint8Array, the Uint8Array case also covers Buffer, so it might make sense to just remove
static from(value: Buffer): Buffer;
entirelyThe text was updated successfully, but these errors were encountered: