Skip to content

Commit

Permalink
fix: Typing of opts Parameter of get*List Methods in Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFrick committed Jun 8, 2024
1 parent 8c3ee76 commit 4ad5c44
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/registry/registry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import type ServiceBroker = require("../service-broker");
import type MetricRegistry = require("../metrics/registry");
import type BaseStrategy = require("../strategies/base");
import type { ActionCatalogListOptions } from "./action-catalog";
import type { ServiceCatalogListOptions } from "./service-catalog";
import type { NodeCatalogListOptions } from "./node-catalog";
import type { EventCatalogListOptions } from "./event-catalog";
import type { Logger } from "../logger-factory";
import type { ActionSchema, EventSchema } from "../service";
import type ServiceItem = require("./service-item");
Expand Down Expand Up @@ -111,10 +114,10 @@ declare class ServiceRegistry {
getNodeInfo(nodeID: string): ServiceRegistry.NodeRawInfo;
processNodeInfo(payload: any): any;

getNodeList(opts?: ActionCatalogListOptions): ReturnType<NodeCatalog["list"]>;
getServiceList(opts?: ActionCatalogListOptions): ReturnType<ServiceCatalog["list"]>;
getNodeList(opts?: NodeCatalogListOptions): ReturnType<NodeCatalog["list"]>;
getServiceList(opts?: ServiceCatalogListOptions): ReturnType<ServiceCatalog["list"]>;
getActionList(opts?: ActionCatalogListOptions): ReturnType<ActionCatalog["list"]>;
getEventList(opts?: ActionCatalogListOptions): ReturnType<EventCatalog["list"]>;
getEventList(opts?: EventCatalogListOptions): ReturnType<EventCatalog["list"]>;

getNodeRawList(): Array<ServiceRegistry.NodeRawInfo>;
}
Expand Down

0 comments on commit 4ad5c44

Please sign in to comment.