Interface TypedSession<Schema>
Type Parameters
- Schema extends z.ZodTypeAny
Properties
Readonly
isTyped
isTyped: boolean
Methods
flash
- flash<Key extends string | number | symbol>(
name: Key,
value: TypeOf<Schema>[Key],
): void Type Parameters
- Key extends string | number | symbol
Returns void
get
- get<Key extends string | number | symbol>(key: Key): null | TypeOf<Schema>[Key]
Type Parameters
- Key extends string | number | symbol
Returns null | TypeOf<Schema>[Key]
has
- has<Key extends string | number | symbol>(name: Key): boolean
Type Parameters
- Key extends string | number | symbol
Returns boolean
set
- set<Key extends string | number | symbol>(
name: Key,
value: TypeOf<Schema>[Key],
): void Type Parameters
- Key extends string | number | symbol
Returns void
unset
- unset<Key extends string | number | symbol>(name: Key): void
Type Parameters
- Key extends string | number | symbol
Returns void
The raw data contained in this session.
This is useful mostly for SessionStorage internally to access the raw session data to persist.