deno/cli/js/ops/plugins.ts
Ryan Dahl 6e5f3453f8
Remove core/plugin.rs (#4824)
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-20 10:27:15 -04:00

7 lines
175 B
TypeScript

import { sendSync } from "./dispatch_json.ts";
export function openPlugin(filename: string): number {
const rid = sendSync("op_open_plugin", { filename });
return rid;
}