aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/Object.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/zilch/Object.zig')
-rw-r--r--src/zilch/Object.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zilch/Object.zig b/src/zilch/Object.zig
index 194c43b..b37f40b 100644
--- a/src/zilch/Object.zig
+++ b/src/zilch/Object.zig
@@ -11,11 +11,11 @@ pub inline fn get(self: *Self, env: *Env, key: anytype) AnyFuture {
return env.call(bindings.get, .{ self, key });
}
-pub inline fn set(self: *Self, env: *Env, key: anytype, value: anytype) Future(.undefined) {
+pub inline fn set(self: *Self, env: *Env, key: anytype, value: anytype) Future(void) {
return .fromAny(env.call(bindings.set, .{ self, key, value }));
}
-pub inline fn delete(self: *Self, env: *Env, key: anytype) Future(.undefined) {
+pub inline fn delete(self: *Self, env: *Env, key: anytype) Future(void) {
return .fromAny(env.call(bindings.delete, .{ self, key }));
}
@@ -23,11 +23,11 @@ pub inline fn call(self: *Self, env: *Env, method: []const u8, args: anytype) An
return env.call(bindings.call, .{ self, method } ++ args);
}
-pub inline fn free(self: *Self, env: *Env) Future(.undefined) {
+pub inline fn free(self: *Self, env: *Env) Future(void) {
return .fromAny(env.call(bindings.free, .{self}));
}
-pub fn new(self: *Self, env: *Env) Future(.object) {
+pub inline fn new(self: *Self, env: *Env) Future(*Self) {
return .fromAny(env.call(bindings.new, .{self}));
}