File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -123,25 +123,6 @@ You can use the following types for cookie values:
123
123
124
124
When defining cookies, you can specify the type using the generic parameter:
125
125
126
- ` ` ` ts
127
- // String cookie - explicit declaration
128
- type StringCookie = Cookie <string , " sessionId" >;
129
-
130
- // Equivalent string cookie with omitted type parameter
131
- type ImplicitStringCookie = Cookie <" sessionId" >;
132
-
133
- // Number cookie
134
- type NumberCookie = Cookie <number , " userId" >;
135
-
136
- // Boolean cookie
137
- type BooleanCookie = Cookie <boolean , " darkMode" >;
138
-
139
- // Date cookie
140
- type DateCookie = Cookie <Date , " lastVisit" >;
141
- ```
142
-
143
- ### Example: Using Different Cookie Types
144
-
145
126
` ` ` ts
146
127
interface UserPreferences {
147
128
// Cookies with different types
You can’t perform that action at this time.
0 commit comments