Skip to content

Commit 1963960

Browse files
🤖 Merge PR DefinitelyTyped#74608 [@types/node]: Rename startCPUProfile() to startCpuProfile() in node:v8 by @kshitijanurag
1 parent ce17cba commit 1963960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎types/node/node-tests/v8.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ v8.deserialize("Hello World!");
9595
v8.isStringOneByteRepresentation("你好"); // $ExpectType boolean
9696

9797
{
98-
using profile: v8.SyncCPUProfileHandle = v8.startCPUProfile();
98+
using profile: v8.SyncCPUProfileHandle = v8.startCpuProfile();
9999
profile.stop(); // $ExpectType string
100100
}

‎types/node/v8.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ declare module "node:v8" {
463463
* ```
464464
* @since v25.0.0
465465
*/
466-
function startCPUProfile(): SyncCPUProfileHandle;
466+
function startCpuProfile(): SyncCPUProfileHandle;
467467
/**
468468
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
469469
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;

0 commit comments

Comments
 (0)