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