Skip to content

Commit

Permalink
fix: more email type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Mar 30, 2023
1 parent c09011b commit a1e005e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-keyring/src/providers/Keyring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function KeyringProvider ({
return agent
}

const authorize = async (email: '{string}@{string}'): Promise<void> => {
const authorize = async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
setRegisterAbortController(controller)
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-keyring/src/providers/Keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const KeyringProvider: ParentComponent<KeyringProviderProps> = (
return a
}

const authorize = async (email: '{string}@{string}'): Promise<void> => {
const authorize = async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
setRegisterAbortController(controller)
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-keyring/src/providers/Keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const KeyringProvider = defineComponent<KeyringProviderProps>({
}

provide(KeyringProviderInjectionKey.authorize,
async (email: '{string}@{string}'): Promise<void> => {
async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
registerAbortController = controller
Expand Down

0 comments on commit a1e005e

Please sign in to comment.