1
0
silverbullet/packages/web/syscalls/fulltext.ts

11 lines
412 B
TypeScript
Raw Normal View History

2022-09-14 07:40:11 +00:00
import { SysCallMapping } from "@plugos/plugos/system";
import { proxySyscalls } from "@plugos/plugos/syscalls/transport";
import { Space } from "@silverbulletmd/common/spaces/space";
export function fulltextSyscalls(space: Space): SysCallMapping {
return proxySyscalls(
["fulltext.search", "fulltext.delete", "fulltext.index"],
(ctx, name, ...args) => space.proxySyscall(ctx.plug, name, args)
);
}