📄 ssr-handlers¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 3 |
| 📦 Imports | 2 |
| 📊 Variables & Constants | 2 |
| 📐 Interfaces | 3 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/ssr-handlers.ts
📦 Imports¶
| Name | Source |
|---|---|
Awaitable |
@vueuse/shared |
MaybeElementRef |
./unrefElement |
Variables & Constants¶
| Name | Type | Kind | Value | Exported |
|---|---|---|---|---|
_global |
{} |
const | typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined... |
✗ |
globalKey |
"__vueuse_ssr_handlers__" |
const | '__vueuse_ssr_handlers__' |
✗ |
Functions¶
getSSRHandler(key: T, fallback: SSRHandlersMap[T]): SSRHandlersMap[T]¶
Parameters:
keyTfallbackSSRHandlersMap[T]
Returns: SSRHandlersMap[T]
Code
setSSRHandler(key: T, fn: SSRHandlersMap[T]): void¶
Parameters:
keyTfnSSRHandlersMap[T]
Returns: void
Code
getHandlers(): Partial<SSRHandlersMap>¶
Returns: Partial<SSRHandlersMap>
Internal Comments:
Code
Interfaces¶
StorageLikeAsync¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
getItem |
(key: string) => Awaitable<string \| null> |
✗ | not shown |
setItem |
(key: string, value: string) => Awaitable<void> |
✗ | not shown |
removeItem |
(key: string) => Awaitable<void> |
✗ | not shown |
StorageLike¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
getItem |
(key: string) => string \| null |
✗ | not shown |
setItem |
(key: string, value: string) => void |
✗ | not shown |
removeItem |
(key: string) => void |
✗ | not shown |
SSRHandlersMap¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
getDefaultStorage |
() => StorageLike \| undefined |
✗ | not shown |
getDefaultStorageAsync |
() => StorageLikeAsync \| undefined |
✗ | not shown |
updateHTMLAttrs |
(selector: string \| MaybeElementRef, attribute: string, value: string) => void |
✗ | not shown |
Generated by Syntax Scribe