Skip to content

Commit

Permalink
fix(types): use const enum for AuthErrorCode to avoid runtime error (#…
Browse files Browse the repository at this point in the history
…689)

Fixes #688
  • Loading branch information
bradleyzhou committed Dec 13, 2021
1 parent ed3af92 commit 39ccdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/instance.d.ts
Expand Up @@ -13,7 +13,7 @@ export interface Brokers {
export type Connection = Duplex | Socket

/* eslint no-unused-vars: 0 */
export enum AuthErrorCode {
export const enum AuthErrorCode {
UNNACCEPTABLE_PROTOCOL = 1,
IDENTIFIER_REJECTED = 2,
SERVER_UNAVAILABLE = 3,
Expand Down

0 comments on commit 39ccdb5

Please sign in to comment.