Skip to content

Commit d94df21

Browse files
committed
docs: update about Temporal compiler Options
1 parent 087336e commit d94df21

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/manual/integration.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,20 @@ deno add jsr:@fedify/fresh
800800
> });
801801
> ~~~~
802802
803+
> [!WARNING]
804+
> Due to `@fedify/fedify` use `Temporal` inside, you should add `deno.unstable` to `compilerOptions.libs` field of `deno.json`.
805+
> ~~~~json
806+
> "compilerOptions": {
807+
> "lib": [
808+
> "dom",
809+
> "dom.asynciterable",
810+
> "dom.iterable",
811+
> "deno.ns",
812+
> "deno.unstable"
813+
> ],
814+
> ...
815+
> ~~~~
816+
803817
Put the following code in your *routes/_middleware.ts* file:
804818
805819
~~~~ typescript [_middelware.ts]

0 commit comments

Comments
 (0)