diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-17 10:13:13 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-17 10:13:13 +0200 |
| commit | b1b4df39abb41a4ae71733e2d139dc70cc71acd8 (patch) | |
| tree | 3d72b1dd75841e0b950282099ec9c837aa03d869 /src/app/root.zig | |
| parent | dd24e86dad0402917b1713d1afeefaf65c3d1e51 (diff) | |
zilch: implement callable and promise
Diffstat (limited to 'src/app/root.zig')
| -rw-r--r-- | src/app/root.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/root.zig b/src/app/root.zig index 25865d2..5d56b49 100644 --- a/src/app/root.zig +++ b/src/app/root.zig @@ -11,10 +11,13 @@ const components = @import("components/root.zig").components; pub const app: zilch.App(.{ .name = "Memora", - .functions = &zilch.Object.functions, + .functions = &(zilch.Object.functions ++ + zilch.Promise.functions ++ + zilch.Callable.functions), .globals = &.{ zilch.Object.global(.window), zilch.Object.global(.Object), + zilch.Callable.global(.fetch), }, .components = components, .body = .parse(@embedFile("index.html")), |