Skip to content

Commit

Permalink
meteor.userasync
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Mar 24, 2023
1 parent a6ae079 commit 952ef77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/meteor/definition/externals/meteor/meteor.d.ts
Expand Up @@ -32,6 +32,8 @@ declare module 'meteor/meteor' {
const server: any;

const runAsUser: <T>(userId: string, scope: () => T) => T;
// https://github.com/meteor/meteor/pull/12274 - Function is there on meteor 2.9, but meteor.d.ts doesn't have it registered
function userAsync(options?: { fields?: Mongo.FieldSpecifier | undefined }): Promise<Meteor.User | null>;

interface MethodThisType {
twoFactorChecked: boolean | undefined;
Expand Down

0 comments on commit 952ef77

Please sign in to comment.