From 44af1cf765139299cff9057e7324aac8638def33 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Aug 2022 00:27:48 -0400 Subject: [PATCH] *add default to the Plugin type as an optional property --- src/types.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 606fbc4..9e8fee9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -25,8 +25,6 @@ export interface RPCMethod { // @ts-ignore export const RPC_REQUEST_SCHEMA: JSONSchemaType = { - anyOf: [], - oneOf: [], type: "object", properties: { module: { @@ -70,6 +68,7 @@ export interface Plugin { name: string; plugin: PluginFunction; exports?: any; + default?: Plugin; } export type RPCStreamHandler = (