*add @lumeweb/cfg for types

This commit is contained in:
Derrick Hammer 2022-09-21 16:15:12 -04:00
parent 83b831b621
commit efcc37871d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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[];