Type guard that narrows a string to FixUseCode when it matches a member of FIX_USE_CODES.
Useful when consuming external strings (URL params, config files, MCP tool inputs) that should be validated before being used as a fix use code.
The string to test.
true if value is a valid FixUseCode.
true
value
FixUseCode
Type guard that narrows a string to FixUseCode when it matches a member of FIX_USE_CODES.
Useful when consuming external strings (URL params, config files, MCP tool inputs) that should be validated before being used as a fix use code.