silverbullet/plugos-silverbullet-syscall/system.ts

10 lines
207 B
TypeScript
Raw Normal View History

2022-04-01 23:07:08 +08:00
import { syscall } from "./syscall";
2022-04-05 23:02:17 +08:00
export async function invokeFunction(
env: string,
2022-04-01 23:07:08 +08:00
name: string,
...args: any[]
): Promise<any> {
return syscall("system.invokeFunction", env, name, ...args);
2022-04-01 23:07:08 +08:00
}