MCPcopy Index your code
hub / github.com/GitbookIO/gitbook / extractDescriptions

Function extractDescriptions

packages/react-openapi/src/utils.ts:47–55  ·  view source on GitHub ↗
(object: AnyObject)

Source from the content-addressed store, hash-verified

45 * Extract descriptions from an object.
46 */
47export function extractDescriptions(object: AnyObject) {
48 return {
49 description: object.description,
50 'x-gitbook-description-html':
51 'x-gitbook-description-html' in object
52 ? object['x-gitbook-description-html']
53 : undefined,
54 };
55}
56
57/**
58 * Resolve the first example from an object.

Callers 1

resolveParameterSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected