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

Commit 424f90d

Browse files
author
Michal Grman
committed
Fixing typings for CookieStorage with ICookieStorageData.
1 parent bea8a5c commit 424f90d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,14 @@ declare module "amazon-cognito-identity-js" {
165165
public getToken(): string;
166166
}
167167

168+
export interface ICookieStorageData {
169+
domain: string;
170+
path?: string;
171+
expires?: number;
172+
secure?: boolean;
173+
}
168174
export class CookieStorage implements ICognitoStorage {
169-
constructor(data);
175+
constructor(data: ICookieStorageData);
170176
setItem(key: string, value: string): void;
171177
getItem(key: string): string;
172178
removeItem(key: string): void;

0 commit comments

Comments
 (0)