diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-20 10:27:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 10:27:15 -0400 |
commit | 6e5f3453f806d6007b8f724837b5dd7d9eb17be9 (patch) | |
tree | 12d683562ae59856c81aca683541b0239290c41a /cli/js/ops/plugins.ts | |
parent | 437e35ca52227337588148a6896040d3fc3f2d54 (diff) |
Remove core/plugin.rs (#4824)
This simplifies the plugin interface in order to deliver op crates with a similar API
Diffstat (limited to 'cli/js/ops/plugins.ts')
-rw-r--r-- | cli/js/ops/plugins.ts | 12 |
1 files changed, 3 insertions, 9 deletions
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; } |