*add default to the Plugin type as an optional property

This commit is contained in:
Derrick Hammer 2022-08-28 00:27:48 -04:00
parent 17da91a558
commit 44af1cf765
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,6 @@ export interface RPCMethod {
// @ts-ignore
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
anyOf: [],
oneOf: [],
type: "object",
properties: {
module: {
@ -70,6 +68,7 @@ export interface Plugin {
name: string;
plugin: PluginFunction;
exports?: any;
default?: Plugin;
}
export type RPCStreamHandler = (