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:
Nacho Codoñer
2025-11-07 16:48:18 +01:00
committed by GitHub

View File

@@ -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 = {