From 4ad5c44720272e55d4c16fa177ff847869ba7b26 Mon Sep 17 00:00:00 2001 From: Colin Frick Date: Sat, 8 Jun 2024 10:40:49 +0200 Subject: [PATCH] fix: Typing of opts Parameter of get*List Methods in Registry --- src/registry/registry.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/registry/registry.d.ts b/src/registry/registry.d.ts index 1cf7a689f..daf9a3ff9 100644 --- a/src/registry/registry.d.ts +++ b/src/registry/registry.d.ts @@ -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"); @@ -111,10 +114,10 @@ declare class ServiceRegistry { getNodeInfo(nodeID: string): ServiceRegistry.NodeRawInfo; processNodeInfo(payload: any): any; - getNodeList(opts?: ActionCatalogListOptions): ReturnType; - getServiceList(opts?: ActionCatalogListOptions): ReturnType; + getNodeList(opts?: NodeCatalogListOptions): ReturnType; + getServiceList(opts?: ServiceCatalogListOptions): ReturnType; getActionList(opts?: ActionCatalogListOptions): ReturnType; - getEventList(opts?: ActionCatalogListOptions): ReturnType; + getEventList(opts?: EventCatalogListOptions): ReturnType; getNodeRawList(): Array; }