summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-07-02 16:11:23 +0200
committerGitHub <noreply@github.com>2021-07-02 16:11:23 +0200
commit7dd4090c2a3dc0222fd6ff611eeb2bd69cd28224 (patch)
tree013fc76f640885329c5e42fd7c1bcccf7f6381db /cli/dts
parent2544ec9af4c6a11fbbb7766c843f1362486e96b7 (diff)
Remove unstable native plugins (#10908)
This commit removes implementation of native plugins alongside the unstable "Deno.openPlugin()" API.
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index ac03e695c..f3897407b 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -129,37 +129,6 @@ declare namespace Deno {
speed: number | undefined;
}
- /** **UNSTABLE**: new API, yet to be vetted.
- *
- * Open and initialize a plugin.
- *
- * ```ts
- * import { assert } from "https://deno.land/std/testing/asserts.ts";
- * const rid = Deno.openPlugin("./path/to/some/plugin.so");
- *
- * // The Deno.core namespace is needed to interact with plugins, but this is
- * // internal so we use ts-ignore to skip type checking these calls.
- * // @ts-ignore
- * const { op_test_sync, op_test_async } = Deno.core.ops();
- *
- * assert(op_test_sync);
- * assert(op_test_async);
- *
- * // @ts-ignore
- * const result = Deno.core.opSync("op_test_sync");
- *
- * // @ts-ignore
- * const result = await Deno.core.opAsync("op_test_sync");
- * ```
- *
- * Requires `allow-plugin` permission.
- *
- * The plugin system is not stable and will change in the future, hence the
- * lack of docs. For now take a look at the example
- * https://github.com/denoland/deno/tree/main/test_plugin
- */
- export function openPlugin(filename: string): number;
-
/** The log category for a diagnostic message. */
export enum DiagnosticCategory {
Warning = 0,