We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41d9791 commit 11c987aCopy full SHA for 11c987a
packages/spectral/src/serverTypes/context.ts
@@ -149,10 +149,7 @@ export function createDebugContext(context: ServerActionContext): DebugContext {
149
},
150
memoryUsage: (actionContext: ActionContext, label: string, showDetail?: boolean) => {
151
if (globalDebug) {
152
- const usage = showDetail
153
- ? memoryUsageInMB()
154
- : // @ts-expect-error: memoryUsage.rss() is documented but not typed
155
- (memoryUsage.rss() as number) / MEMORY_USAGE_CONVERSION;
+ const usage = showDetail ? memoryUsageInMB() : memoryUsage.rss() / MEMORY_USAGE_CONVERSION;
156
157
actionContext.debug.results.memoryUsage.push({
158
mark: label,
0 commit comments