Skip to content

ExtensionDecoder

User-supplied decoder for a single extension OID.

Register with ParseOptions.decoders or ParseOptions.decoderMap to decode custom extensions during parsing.

ts
interface ExtensionDecoder<TValue> {
	readonly oid: string;
	decode(extension: ParsedExtension): TValue;
}

Properties

  • readonly oid: string — OID this decoder handles.

Released under the MIT License.