silverbullet/cmd/test/test_func.test.ts

11 lines
258 B
TypeScript
Raw Normal View History

2024-07-27 01:16:08 +08:00
import * as YAML from "js-yaml";
export async function hello() {
2024-08-02 23:14:40 +08:00
// @ts-ignore: syscall is a global function
const numbers = await syscall("addNumbers", 1, 2);
return {
yamlMessage: YAML.dump({ hello: "world" }),
addedNumbers: numbers,
};
2024-07-27 01:16:08 +08:00
}