refactor(msg-bus): prefer explicit enum on AsyncAPI error
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
enum RtErrorCode {
|
||||
MINUS_32001 = -32001,
|
||||
MINUS_32002 = -32002,
|
||||
MINUS_32003 = -32003,
|
||||
MINUS_32004 = -32004,
|
||||
MINUS_32005 = -32005,
|
||||
MINUS_32006 = -32006,
|
||||
MINUS_32007 = -32007,
|
||||
MINUS_32603 = -32603,
|
||||
MINUS_32600 = -32600,
|
||||
MINUS_32601 = -32601,
|
||||
MINUS_32602 = -32602
|
||||
}
|
||||
export type { RtErrorCode as default };
|
||||
@@ -1,9 +1,8 @@
|
||||
import type RtErrorCode from './RtErrorCode';
|
||||
import type RtErrorMessage from './RtErrorMessage';
|
||||
// AUTO-GENERATED — do not edit by hand.
|
||||
// Regenerate with `just asyncapi-ts`.
|
||||
interface RtErrorObject {
|
||||
code: RtErrorCode;
|
||||
code: number;
|
||||
data?: unknown;
|
||||
message: RtErrorMessage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user