@isoloop/protocol 0.1.0-next.6 → 0.1.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare function envelopeGuard<E extends AnyEnvelope>(types: MessageTypes
|
|
|
44
44
|
/** Exhaustiveness check for switches over message unions. */
|
|
45
45
|
export declare function assertNever(x: never, message?: string): never;
|
|
46
46
|
/** Every error code on the wire (design §3, §4.7, §6.1, §6.3; ADRs 0002, 0003, 0007, 0008). */
|
|
47
|
-
export declare const ERROR_CODES: readonly ["protocol_mismatch", "timeout", "no_surface", "forbidden", "not_found", "unsupported", "cross_origin", "routing_disabled", "navigate_failed", "unknown_topic", "too_large", "invalid", "not_encodable", "quota_exceeded", "bus_unavailable", "not_requestable", "already_replied", "reply_invalid", "aborted", "no_responder", "contracts_failed", "contracts_invalid", "contracts_mismatch", "reserved_topic", "seed_async", "seed_pending"];
|
|
47
|
+
export declare const ERROR_CODES: readonly ["protocol_mismatch", "timeout", "no_surface", "forbidden", "not_found", "unsupported", "cross_origin", "routing_disabled", "navigate_failed", "unknown_topic", "too_large", "invalid", "not_encodable", "quota_exceeded", "bus_unavailable", "not_requestable", "already_replied", "reply_invalid", "aborted", "no_responder", "dropped", "contracts_failed", "contracts_invalid", "contracts_mismatch", "reserved_topic", "seed_async", "seed_pending"];
|
|
48
48
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
49
49
|
export declare function isErrorCode(x: unknown): x is ErrorCode;
|
|
50
50
|
/** A schema issue, as reported with `invalid` (design §6.3). */
|
package/dist/index.js
CHANGED