Skip to content

Commit

Permalink
fix(types): Add missing create method to PhoneNumberResource, Web3W…
Browse files Browse the repository at this point in the history
…alletResource
  • Loading branch information
anagstef committed Jun 26, 2023
1 parent aa07faf commit 30f8ad1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-coins-turn.md
@@ -0,0 +1,5 @@
---
'@clerk/types': patch
---

Add missing `create` method to `PhoneNumberResource`, `EmailAddressResource`, `Web3WalletResource` interfaces
1 change: 1 addition & 0 deletions packages/types/src/phoneNumber.ts
Expand Up @@ -31,4 +31,5 @@ export interface PhoneNumberResource extends ClerkResource {
makeDefaultSecondFactor: () => Promise<PhoneNumberResource>;
setReservedForSecondFactor: (params: SetReservedForSecondFactorParams) => Promise<PhoneNumberResource>;
destroy: () => Promise<void>;
create: () => Promise<PhoneNumberResource>;
}
1 change: 1 addition & 0 deletions packages/types/src/web3Wallet.ts
Expand Up @@ -20,6 +20,7 @@ export interface Web3WalletResource extends ClerkResource {
prepareVerification: (params: PrepareWeb3WalletVerificationParams) => Promise<Web3WalletResource>;
attemptVerification: (params: AttemptWeb3WalletVerificationParams) => Promise<Web3WalletResource>;
destroy: () => Promise<void>;
create: () => Promise<Web3WalletResource>;
}

export type GenerateSignature = (opts: GenerateSignatureParams) => Promise<string>;
Expand Down

0 comments on commit 30f8ad1

Please sign in to comment.