MCPcopy Create free account
hub / github.com/anomalyco/opencode / isTheme

Function isTheme

packages/opencode/src/plugin/tui/runtime.ts:228–233  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

226}
227
228function isTheme(value: unknown) {
229 if (!isRecord(value)) return false
230 if (!("theme" in value)) return false
231 if (!isRecord(value.theme)) return false
232 return true
233}
234
235function resolveRoot(root: string) {
236 if (root.startsWith("file://")) {

Callers 1

createThemeInstallerFunction · 0.70

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected