From 6e5f3453f806d6007b8f724837b5dd7d9eb17be9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 20 Apr 2020 10:27:15 -0400 Subject: Remove core/plugin.rs (#4824) This simplifies the plugin interface in order to deliver op crates with a similar API --- cli/js/ops/plugins.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'cli/js/ops') diff --git a/cli/js/ops/plugins.ts b/cli/js/ops/plugins.ts index 878ea1c66..e4593afbb 100644 --- a/cli/js/ops/plugins.ts +++ b/cli/js/ops/plugins.ts @@ -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; } -- cgit v1.2.3