From 1c0db4f659a66d955c96bea5f259fdd3c4a2cd27 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 30 Mar 2023 22:10:00 +0100 Subject: [PATCH] fix: more email type (#494) Needed more... --- packages/w3ui/packages/react-keyring/src/providers/Keyring.tsx | 2 +- packages/w3ui/packages/solid-keyring/src/providers/Keyring.ts | 2 +- packages/w3ui/packages/vue-keyring/src/providers/Keyring.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/w3ui/packages/react-keyring/src/providers/Keyring.tsx b/packages/w3ui/packages/react-keyring/src/providers/Keyring.tsx index 97faaaafa..efff32868 100644 --- a/packages/w3ui/packages/react-keyring/src/providers/Keyring.tsx +++ b/packages/w3ui/packages/react-keyring/src/providers/Keyring.tsx @@ -94,7 +94,7 @@ export function KeyringProvider ({ return agent } - const authorize = async (email: '{string}@{string}'): Promise => { + const authorize = async (email: `${string}@${string}`): Promise => { const agent = await getAgent() const controller = new AbortController() setRegisterAbortController(controller) diff --git a/packages/w3ui/packages/solid-keyring/src/providers/Keyring.ts b/packages/w3ui/packages/solid-keyring/src/providers/Keyring.ts index ae15d134c..3bb1d6909 100644 --- a/packages/w3ui/packages/solid-keyring/src/providers/Keyring.ts +++ b/packages/w3ui/packages/solid-keyring/src/providers/Keyring.ts @@ -89,7 +89,7 @@ export const KeyringProvider: ParentComponent = ( return a } - const authorize = async (email: '{string}@{string}'): Promise => { + const authorize = async (email: `${string}@${string}`): Promise => { const agent = await getAgent() const controller = new AbortController() setRegisterAbortController(controller) diff --git a/packages/w3ui/packages/vue-keyring/src/providers/Keyring.ts b/packages/w3ui/packages/vue-keyring/src/providers/Keyring.ts index a5a2f8e56..6092d696d 100644 --- a/packages/w3ui/packages/vue-keyring/src/providers/Keyring.ts +++ b/packages/w3ui/packages/vue-keyring/src/providers/Keyring.ts @@ -98,7 +98,7 @@ export const KeyringProvider = defineComponent({ } provide(KeyringProviderInjectionKey.authorize, - async (email: '{string}@{string}'): Promise => { + async (email: `${string}@${string}`): Promise => { const agent = await getAgent() const controller = new AbortController() registerAbortController = controller