We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68317ac commit 6eec2ceCopy full SHA for 6eec2ce
src/autodiscovery.ts
@@ -41,7 +41,7 @@ export enum AutoDiscoveryAction {
41
FAIL_ERROR = "FAIL_ERROR",
42
}
43
44
-enum AutoDiscoveryError {
+export enum AutoDiscoveryError {
45
Invalid = "Invalid homeserver discovery response",
46
GenericFailure = "Failed to get autodiscovery configuration from server",
47
InvalidHsBaseUrl = "Invalid base_url for m.homeserver",
@@ -114,7 +114,7 @@ export class AutoDiscovery {
114
115
public static readonly ERROR_HOMESERVER_TOO_OLD = AutoDiscoveryError.HomeserverTooOld;
116
117
- public static readonly ALL_ERRORS = Object.keys(AutoDiscoveryError);
+ public static readonly ALL_ERRORS = Object.keys(AutoDiscoveryError) as AutoDiscoveryError[];
118
119
/**
120
* The auto discovery failed. The client is expected to communicate
0 commit comments