Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #592 from fl3xman/master
Browse files Browse the repository at this point in the history
Fixing typings for CookieStorage with ICookieStorageData.
  • Loading branch information
Ionut Trestian authored Nov 15, 2017
2 parents bea8a5c + 424f90d commit d0e2004
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ declare module "amazon-cognito-identity-js" {
public getToken(): string;
}

export interface ICookieStorageData {
domain: string;
path?: string;
expires?: number;
secure?: boolean;
}
export class CookieStorage implements ICognitoStorage {
constructor(data);
constructor(data: ICookieStorageData);
setItem(key: string, value: string): void;
getItem(key: string): string;
removeItem(key: string): void;
Expand Down

0 comments on commit d0e2004

Please sign in to comment.