refactor: dedupe secrets record guard

This commit is contained in:
Peter Steinberger
2026-04-06 23:49:09 +01:00
parent e87300e2f4
commit 9d37f1e5df

View File

@@ -1,9 +1,6 @@
import fs from "node:fs";
import path from "node:path";
export function isRecord(value: unknown): value is Record<string, unknown> {
return typeof value === "object" && value !== null && !Array.isArray(value);
}
export { isRecord } from "../utils.js";
export function isNonEmptyString(value: unknown): value is string {
return typeof value === "string" && value.trim().length > 0;