diff --git a/index.d.ts b/index.d.ts index 7d0b1456..80d2b703 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;