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,