Skip to content

Commit 9f774aa

Browse files
committed
remove type aliases
1 parent 039b47f commit 9f774aa

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

docs/ts/primitives/cookies.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,6 @@ You can use the following types for cookie values:
123123
124124
When defining cookies, you can specify the type using the generic parameter:
125125
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-
145126
```ts
146127
interface UserPreferences {
147128
// Cookies with different types

0 commit comments

Comments
 (0)