mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #13987 from jeetburman/fix/accounts-base-async-types
fix: Update TypeScript definitions for async support in accounts-base
This commit is contained in:
7
packages/accounts-base/accounts-base.d.ts
vendored
7
packages/accounts-base/accounts-base.d.ts
vendored
@@ -362,11 +362,11 @@ export namespace Accounts {
|
||||
* - a login method result object
|
||||
**/
|
||||
function registerLoginHandler(
|
||||
handler: (options: any) => undefined | LoginMethodResult
|
||||
handler: (options: any) => undefined | LoginMethodResult | Promise<undefined | LoginMethodResult>
|
||||
): void;
|
||||
function registerLoginHandler(
|
||||
name: string,
|
||||
handler: (options: any) => undefined | LoginMethodResult
|
||||
handler: (options: any) => undefined | LoginMethodResult | Promise<undefined | LoginMethodResult>
|
||||
): void;
|
||||
|
||||
type Password =
|
||||
@@ -387,8 +387,7 @@ export namespace Accounts {
|
||||
function _checkPasswordAsync(
|
||||
user: Meteor.User,
|
||||
password: Password
|
||||
): Promise<{ userId: string; error?: any }>
|
||||
}
|
||||
): Promise<{ userId: string; error?: any }>;
|
||||
|
||||
export namespace Accounts {
|
||||
type StampedLoginToken = {
|
||||
|
||||
Reference in New Issue
Block a user