*add @lumeweb/cfg for types
This commit is contained in:
parent
83b831b621
commit
efcc37871d
|
@ -4,6 +4,7 @@
|
|||
"main": "dist",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@lumeweb/cfg": "https://github.com/LumeWeb/bcfg.git",
|
||||
"@types/node": "^18.7.16",
|
||||
"express": "^4.18.1",
|
||||
"loglevel": "^1.8.0"
|
||||
|
|
|
@ -2,6 +2,7 @@ import tls from "tls";
|
|||
import type { Logger } from "loglevel";
|
||||
import type { Ed25519Keypair, Err } from "libskynet";
|
||||
import type express from "express";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
|
||||
export interface RPCRequest {
|
||||
bypassCache?: boolean;
|
||||
|
@ -80,7 +81,7 @@ export interface SavedSslData {
|
|||
}
|
||||
|
||||
export interface PluginAPI {
|
||||
config: any;
|
||||
config: Config;
|
||||
registerMethod: (methodName: string, method: RPCMethod) => void;
|
||||
loadPlugin: (moduleName: string) => Promise<Plugin>;
|
||||
getMethods: () => string[];
|
||||
|
|
Loading…
Reference in New Issue