MCPcopy Create free account
hub / github.com/chhoumann/quickadd / isSecretUserScriptOption

Function isSecretUserScriptOption

src/utils/userScriptSecrets.ts:496–508  ·  view source on GitHub ↗
(option: unknown)

Source from the content-addressed store, hash-verified

494}
495
496export function isSecretUserScriptOption(option: unknown): boolean {
497 if (!isRecord(option)) return false;
498
499 if (option.type === "secret") return true;
500 if (
501 (option.type === "text" || option.type === "input") &&
502 option.secret === true
503 ) {
504 return true;
505 }
506
507 return false;
508}
509
510export function isUserScriptSecretRef(
511 value: unknown,

Callers 5

displayMethod · 0.90
getSecretOptionNamesFunction · 0.85
getSecretOptionEntriesFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected