*add default to the Plugin type as an optional property
This commit is contained in:
parent
17da91a558
commit
44af1cf765
|
@ -25,8 +25,6 @@ export interface RPCMethod {
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
||||||
anyOf: [],
|
|
||||||
oneOf: [],
|
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
module: {
|
module: {
|
||||||
|
@ -70,6 +68,7 @@ export interface Plugin {
|
||||||
name: string;
|
name: string;
|
||||||
plugin: PluginFunction;
|
plugin: PluginFunction;
|
||||||
exports?: any;
|
exports?: any;
|
||||||
|
default?: Plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RPCStreamHandler = (
|
export type RPCStreamHandler = (
|
||||||
|
|
Loading…
Reference in New Issue