MCPcopy Index your code
hub / github.com/codeaashu/claude-code / platform

Function platform

web/lib/platform.ts:17–19  ·  view source on GitHub ↗
(options: { web: T; terminal: T })

Source from the content-addressed store, hash-verified

15 * Useful for conditional rendering where both branches must be valid React.
16 */
17export function platform<T>(options: { web: T; terminal: T }): T {
18 return isWeb ? options.web : options.terminal;
19}
20
21/**
22 * Window/terminal dimensions hook substitute.

Callers 9

detectPluginDirectoriesFunction · 0.85
getSecureSocketPathFunction · 0.85
getAllSocketPathsFunction · 0.85
startMethod · 0.85
stopMethod · 0.85
shouldOfferTerminalSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected