mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Remove core/plugin.rs (#4824)
This simplifies the plugin interface in order to deliver op crates with a similar API
This commit is contained in:
parent
437e35ca52
commit
6e5f3453f8
11 changed files with 53 additions and 190 deletions
|
@ -1,12 +1,6 @@
|
|||
import { sendSync } from "./dispatch_json.ts";
|
||||
|
||||
interface OpenPluginResponse {
|
||||
rid: number;
|
||||
ops: {
|
||||
[name: string]: number;
|
||||
};
|
||||
}
|
||||
|
||||
export function openPlugin(filename: string): OpenPluginResponse {
|
||||
return sendSync("op_open_plugin", { filename });
|
||||
export function openPlugin(filename: string): number {
|
||||
const rid = sendSync("op_open_plugin", { filename });
|
||||
return rid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue