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

Function isRecord

packages/app/src/utils/runtime-adapters.ts:3–5  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1type RecordValue = Record<string, unknown>
2
3const isRecord = (value: unknown): value is RecordValue => {
4 return typeof value === "object" && value !== null
5}
6
7export const isDisposable = (value: unknown): value is { dispose: () => void } => {
8 return isRecord(value) && typeof value.dispose === "function"

Callers 4

isDisposableFunction · 0.70
hasSetOptionFunction · 0.70
getHoveredLinkTextFunction · 0.70
getSpeechRecognitionCtorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected