Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ isServerPlugin
Function
isServerPlugin
packages/opencode/src/plugin/index.ts:84–86 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
82
}
83
84
function
isServerPlugin(value: unknown): value is PluginInstance {
85
return
typeof value ===
"function"
86
}
87
88
function
getServerPlugin(value: unknown) {
89
if
(isServerPlugin(value))
return
value
Callers
1
getServerPlugin
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected