Skip to content

Commit

Permalink
Merge pull request #1287 from sonderformat-llc/fix/registry-list-types
Browse files Browse the repository at this point in the history
fix: Typing of opts Parameter of get*List Methods in Registry
  • Loading branch information
icebob committed Jun 13, 2024
2 parents 8c3ee76 + 4ad5c44 commit 525c582
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 525c582

Please sign in to comment.