Skip to content

Commit cb2ba3e

Browse files
committed
Importing missing package.
1 parent fadcb3b commit cb2ba3e

File tree

1 file changed

+2
-2
lines changed
  • src/content/docs/durable-objects/api

1 file changed

+2
-2
lines changed

src/content/docs/durable-objects/api/base.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 1
66
---
77

8-
import { Render, Tabs, TabItem, GlossaryTooltip, Type, MetaInfo } from "~/components";
8+
import { Render, Tabs, TabItem, GlossaryTooltip, Type, MetaInfo, TypeScriptExample } from "~/components";
99

1010
The `DurableObject` base class is an abstract class which all Durable Objects inherit from. This base class provides a set of optional methods, frequently referred to as handler methods, which can respond to events, for example a webSocketMessage when using the [WebSocket Hibernation API](#/durable-objects/best-practices/websockets/#websocket-hibernation-api). To provide a concrete example, here is a Durable Object `MyDurableObject` which extends `DurableObject` and implements the fetch handler to return "Hello, World!" to the calling Worker.
1111

@@ -43,7 +43,7 @@ export class MyDurableObject extends DurableObject {
4343

4444
- This method can be `async`.
4545

46-
- Refer to [Alarms](/durable-objects/api/alarms/#alarm) for more information.
46+
- Refer to [`alarm`](/durable-objects/api/alarms/#alarm) for more information.
4747

4848
### `webSocketMessage`
4949

0 commit comments

Comments
 (0)