Skip to content

Commit

Permalink
Adds 'listDevices' interface to CognitoUser class for TypeScript type (
Browse files Browse the repository at this point in the history
…#276)

safety
  • Loading branch information
mrowles authored and mlabieniec committed Feb 13, 2018
1 parent 6b1c05d commit 43a0f0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/amazon-cognito-identity-js/index.d.ts
Expand Up @@ -59,6 +59,7 @@ declare module "amazon-cognito-identity-js" {
public setDeviceStatusRemembered(callbacks: { onSuccess: (success: string) => void, onFailure: (err: any) => void }): void;
public setDeviceStatusNotRemembered(callbacks: { onSuccess: (success: string) => void, onFailure: (err: any) => void }): void;
public getDevice(callbacks: {onSuccess: (success: string) => void, onFailure: (err: Error) => void}): any;
public listDevices(limit: number, paginationToken: string, callbacks: {onSuccess: (data: any) => void, onFailure: (err: Error) => void}): void;
public sendMFACode(confirmationCode: string, callbacks: { onSuccess: (session: CognitoUserSession) => void, onFailure: (err: any) => void }): void;
public completeNewPasswordChallenge(newPassword: string,
requiredAttributeData: any,
Expand Down

0 comments on commit 43a0f0a

Please sign in to comment.