diff --git a/types/node/node-tests/v8.ts b/types/node/node-tests/v8.ts index 9d005a31f1d429..b0a1bcc44b8768 100644 --- a/types/node/node-tests/v8.ts +++ b/types/node/node-tests/v8.ts @@ -95,6 +95,6 @@ v8.deserialize("Hello World!"); v8.isStringOneByteRepresentation("你好"); // $ExpectType boolean { - using profile: v8.SyncCPUProfileHandle = v8.startCPUProfile(); + using profile: v8.SyncCPUProfileHandle = v8.startCpuProfile(); profile.stop(); // $ExpectType string } diff --git a/types/node/v8.d.ts b/types/node/v8.d.ts index 022dc01a154884..632552b6f7a0eb 100644 --- a/types/node/v8.d.ts +++ b/types/node/v8.d.ts @@ -463,7 +463,7 @@ declare module "node:v8" { * ``` * @since v25.0.0 */ - function startCPUProfile(): SyncCPUProfileHandle; + function startCpuProfile(): SyncCPUProfileHandle; /** * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string. * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;