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

Function isPlatform

src/kernel/device.ts:135–138  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

133}
134
135export function isPlatform(value: unknown): value is Platform {
136 // Internal device-platform membership derived from the canonical PLATFORMS tuple.
137 return (PLATFORMS as readonly unknown[]).includes(value);
138}
139
140export function isPublicPlatform(value: unknown): value is PublicPlatform {
141 // The PUBLIC leaf strings a daemon response carries (approach b). Used by the client

Callers 1

device.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected