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

Commit

Permalink
Fixing typings for CookieStorage with ICookieStorageData.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Grman committed Nov 15, 2017
1 parent bea8a5c commit 424f90d
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 424f90d

Please sign in to comment.