Skip to content

Commit

Permalink
Export AutoDiscoveryError and fix type of ALL_ERRORS (#3768)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Oct 3, 2023
1 parent 68317ac commit 6eec2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autodiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export enum AutoDiscoveryAction {
FAIL_ERROR = "FAIL_ERROR",
}

enum AutoDiscoveryError {
export enum AutoDiscoveryError {
Invalid = "Invalid homeserver discovery response",
GenericFailure = "Failed to get autodiscovery configuration from server",
InvalidHsBaseUrl = "Invalid base_url for m.homeserver",
Expand Down Expand Up @@ -114,7 +114,7 @@ export class AutoDiscovery {

public static readonly ERROR_HOMESERVER_TOO_OLD = AutoDiscoveryError.HomeserverTooOld;

public static readonly ALL_ERRORS = Object.keys(AutoDiscoveryError);
public static readonly ALL_ERRORS = Object.keys(AutoDiscoveryError) as AutoDiscoveryError[];

/**
* The auto discovery failed. The client is expected to communicate
Expand Down

0 comments on commit 6eec2ce

Please sign in to comment.