Summary
The HyperliquidRawQuestion type in core/src/exchanges/hyperliquid/ does not include a description field, but the Hyperliquid normalizer reads question.description to populate the PMXT market description. The type is incorrect and any TypeScript strict-mode access of .description on this type will error.
Impact
MEDIUM — market descriptions will be undefined for all Hyperliquid markets if the normalizer is reading from an untyped property. Under TypeScript strict mode this is a type error. In production it means empty descriptions.
Details
- Type:
HyperliquidRawQuestion (in core/src/exchanges/hyperliquid/)
- Missing field:
description?: string
- Hyperliquid API does include a description string in the asset metadata response
- The normalizer accesses
.description but the type doesn't declare it, so the property is implicitly any or causes a compile error
Required Fix
Add description?: string to the HyperliquidRawQuestion interface/type in the Hyperliquid type definitions. Confirm the field name matches what the API actually returns (may be description, assetDescription, or similar).
Summary
The
HyperliquidRawQuestiontype incore/src/exchanges/hyperliquid/does not include adescriptionfield, but the Hyperliquid normalizer readsquestion.descriptionto populate the PMXT market description. The type is incorrect and any TypeScript strict-mode access of.descriptionon this type will error.Impact
MEDIUM — market descriptions will be
undefinedfor all Hyperliquid markets if the normalizer is reading from an untyped property. Under TypeScript strict mode this is a type error. In production it means empty descriptions.Details
HyperliquidRawQuestion(incore/src/exchanges/hyperliquid/)description?: string.descriptionbut the type doesn't declare it, so the property is implicitlyanyor causes a compile errorRequired Fix
Add
description?: stringto theHyperliquidRawQuestioninterface/type in the Hyperliquid type definitions. Confirm the field name matches what the API actually returns (may bedescription,assetDescription, or similar).