From 31d05bb3a4226fa2a5030bbb96ffd24e0e6ba3fe Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 6 Apr 2026 23:18:15 +0100 Subject: [PATCH] refactor: dedupe secrets record helper --- src/secrets/runtime-web-tools.shared.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/secrets/runtime-web-tools.shared.ts b/src/secrets/runtime-web-tools.shared.ts index a4f0ff80947..fa10c0974b8 100644 --- a/src/secrets/runtime-web-tools.shared.ts +++ b/src/secrets/runtime-web-tools.shared.ts @@ -8,6 +8,8 @@ import type { } from "./runtime-shared.js"; import { pushInactiveSurfaceWarning, pushWarning } from "./runtime-shared.js"; import type { RuntimeWebDiagnostic, RuntimeWebDiagnosticCode } from "./runtime-web-tools.types.js"; +export { isRecord } from "./shared.js"; +import { isRecord } from "./shared.js"; type RuntimeWebWarningCode = Extract; export type SecretResolutionResult = { @@ -76,10 +78,6 @@ export type RuntimeWebProviderSelectionParams< }) => Promise; }; -export function isRecord(value: unknown): value is Record { - return typeof value === "object" && value !== null && !Array.isArray(value); -} - export function ensureObject( target: Record, key: string,