Tighten protocol typings for strict consumers

This commit is contained in:
nav
2026-04-09 04:37:59 +00:00
parent a7e1a9c210
commit 8744a771a2
2 changed files with 17 additions and 17 deletions

View File

@@ -128,7 +128,7 @@ export function decodeBuiltin(raw: string): BuiltinEnvelope {
throw new CodecError("Missing or invalid 'type' field in envelope");
}
return envelope as BuiltinEnvelope;
return envelope as unknown as BuiltinEnvelope;
} catch (cause) {
if (cause instanceof CodecError) {
throw cause;