Refactor all the things
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
import type { CommandDef } from "../../web/hooks/command.ts";
|
||||
import { syscall } from "./syscall.ts";
|
||||
|
||||
export function invoke(
|
||||
name: string,
|
||||
...args: any[]
|
||||
): Promise<any> {
|
||||
return syscall("system.invoke", name, ...args);
|
||||
}
|
||||
|
||||
// @deprecated use invoke instead
|
||||
export function invokeFunction(
|
||||
env: string,
|
||||
name: string,
|
||||
...args: any[]
|
||||
): Promise<any> {
|
||||
return syscall("system.invokeFunction", env, name, ...args);
|
||||
return syscall("system.invokeFunction", name, ...args);
|
||||
}
|
||||
|
||||
// Only available on the client
|
||||
|
||||
Reference in New Issue
Block a user