MCPcopy
hub / github.com/GitbookIO/gitbook / getOpenAPIClientContext

Function getOpenAPIClientContext

packages/react-openapi/src/context.ts:90–99  ·  view source on GitHub ↗
(context: OpenAPIUniversalContext)

Source from the content-addressed store, hash-verified

88 * Get the client context from the OpenAPI context.
89 */
90export function getOpenAPIClientContext(context: OpenAPIUniversalContext): OpenAPIClientContext {
91 return {
92 translation: context.translation,
93 icons: context.icons,
94 defaultInteractiveOpened: context.defaultInteractiveOpened,
95 blockKey: context.blockKey,
96 id: context.id,
97 $$isClientContext$$: true,
98 };
99}

Callers 7

OpenAPIPathFunction · 0.90
OpenAPICodeSampleFunction · 0.90
OpenAPICodeSampleFooterFunction · 0.90
OpenAPIWebhookExampleFunction · 0.90
OpenAPIResponseFunction · 0.90
OpenAPIColumnSpecFunction · 0.90
OpenAPISchemasFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected