Skip to content

Commit 87c2ac3

Browse files
authored
Use LegacyRendezvousFailureReason over RendezvousFailureReason (#4231)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 43022d5 commit 87c2ac3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/rendezvous/RendezvousFailureReason.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
export type RendezvousFailureListener = (reason: RendezvousFailureReason) => void;
17+
export type RendezvousFailureListener = (reason: LegacyRendezvousFailureReason) => void;
1818

19-
export enum RendezvousFailureReason {
19+
export enum LegacyRendezvousFailureReason {
2020
UserDeclined = "user_declined",
2121
OtherDeviceNotSignedIn = "other_device_not_signed_in",
2222
OtherDeviceAlreadySignedIn = "other_device_already_signed_in",
@@ -29,3 +29,8 @@ export enum RendezvousFailureReason {
2929
UnsupportedTransport = "unsupported_transport",
3030
HomeserverLacksSupport = "homeserver_lacks_support",
3131
}
32+
33+
/**
34+
* @deprecated legacy re-export
35+
*/
36+
export { LegacyRendezvousFailureReason as RendezvousFailureReason };

0 commit comments

Comments
 (0)