Skip to content

Commit d72d6c2

Browse files
committed
small fixes for types
1 parent 60c7499 commit d72d6c2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/profiling-node/src/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,12 @@ export const PROFILER_THREAD_NAME = isMainThread ? 'main' : 'worker';
3737
const FORMAT_VERSION = '1';
3838
const CONTINUOUS_FORMAT_VERSION = '2';
3939

40-
// Os machine was backported to 16.18, but this was not reflected in the types
41-
// @ts-expect-error ignore missing
42-
const machine = typeof os.machine === 'function' ? os.machine() : os.arch();
43-
4440
// Machine properties (eval only once)
4541
const PLATFORM = os.platform();
4642
const RELEASE = os.release();
4743
const VERSION = os.version();
4844
const TYPE = os.type();
49-
const MODEL = machine;
45+
const MODEL = os.machine();
5046
const ARCH = os.arch();
5147

5248
/**

packages/vercel-edge/src/vendored/async-local-storage-context-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class AsyncLocalStorageContextManager extends AbstractAsyncHooksContextMa
5252
getStore() {
5353
return undefined;
5454
},
55-
run(_store, callback, ...args) {
55+
run(_store: unknown, callback: () => Context, ...args: unknown[]) {
5656
return callback.apply(this, args);
5757
},
5858
disable() {

0 commit comments

Comments
 (0)