We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43ac9ce commit 3b62145Copy full SHA for 3b62145
src/ExtensionCodec.ts
@@ -57,7 +57,7 @@ export class ExtensionCodec<ContextType = undefined> implements ExtensionCodecTy
57
this.decoders[type] = decode;
58
} else {
59
// built-in extensions
60
- const index = 1 + type;
+ const index = -1 - type;
61
this.builtInEncoders[index] = encode;
62
this.builtInDecoders[index] = decode;
63
}
0 commit comments