Skip to content

Commit d1e7182

Browse files
xkr47esezen
andauthored
Improve typings for IdOptions (#411)
* Improve typings for IdOptions * Update src/types/index.d.ts * Update src/types/index.d.ts --------- Co-authored-by: Enes Kutay SEZEN <eneskutaysezen@gmail.com>
1 parent ee917f0 commit d1e7182

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/types/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export interface IdOptions extends Record<string, any> {
3232
cookie_days_to_live?: number;
3333
on_node?: boolean;
3434
session_is_new?: boolean;
35-
client_id_storage_location?: string;
36-
session_id_storage_location?: string;
35+
// defaults to 'cookie'
36+
client_id_storage_location?: 'cookie' | 'local';
37+
// defaults to 'local'
38+
session_id_storage_location?: 'cookie' | 'local';
3739
}
3840

3941
export interface EventDispatcherOptions {

0 commit comments

Comments
 (0)