MCPcopy Index your code
hub / github.com/callstack/agent-device / tryGetPlugin

Function tryGetPlugin

src/core/platform-plugin/plugin.ts:171–173  ·  view source on GitHub ↗
(platform: Platform)

Source from the content-addressed store, hash-verified

169
170/** Non-throwing lookup, for call-sites that branch on plugin presence. */
171export function tryGetPlugin(platform: Platform): PlatformPlugin | undefined {
172 return registry.get(platform);
173}
174
175/** The leaf platforms that currently carry a plugin, in registration order. */
176export function registeredPlatforms(): Platform[] {

Calls 1

getMethod · 0.80

Tested by

no test coverage detected