defineExtensionDecoder
defineExtensionDecoder
Identity helper that narrows the type of a custom ExtensionDecoder literal.
ts
function defineExtensionDecoder<TValue>(
decoder: ExtensionDecoder<TValue>,
): ExtensionDecoder<TValue>Parameters
decoder:ExtensionDecoder<TValue> — Decoder definition to return unchanged.
Returns — The same decoder, properly typed.