Skip to content

Commit

Permalink
export more types
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Dec 10, 2023
1 parent c33ebf3 commit 2667089
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// --- SERVICE BROKER ---

import ServiceBroker = require("./src/service-broker");
import type { BrokerOptions, CallingOptions } from "./src/service-broker";
import type {
BrokerOptions,
CallingOptions,
TransporterConfig,
CacherConfig,
SerializerConfig,
ReplOptions,
NodeHealthStatus,
MCallCallingOptions
} from "./src/service-broker";

// --- SERVICE ---

Expand All @@ -12,12 +21,18 @@ import type {
ActionHandler,
ActionParams,
ActionVisibility,
ActionParamTypes,
ActionCacheOptions,
EventSchema,
EventSchemas,
ServiceHooks,
ServiceHooksAfter,
ServiceSearchObj,
ServiceSchema,
ServiceSettingSchema,
ServiceAction,
ServiceActions
ServiceActions,
ServiceMethods
} from "./src/service";

// --- CONTEXT ---
Expand Down Expand Up @@ -106,21 +121,33 @@ import * as Validators from "./src/validators";
import type { ValidatorNames } from "./src/validators";

declare namespace Moleculer {
export { ServiceBroker, BrokerOptions, CallingOptions };
export { BrokerOptions,
CallingOptions,
TransporterConfig,
CacherConfig,
SerializerConfig,
ReplOptions,
NodeHealthStatus,
MCallCallingOptions };

export {
Service,
ActionSchema,
ActionHooks,
ActionHandler,
ActionParams,
ActionVisibility,
ActionParamTypes,
ActionCacheOptions,
EventSchema,
EventSchemas,
ServiceHooks,
ServiceHooksAfter,
ServiceSearchObj,
ServiceSchema,
ServiceSettingSchema,
ServiceAction,
ServiceActions
ServiceActions,
ServiceMethods
};

export { Context };
Expand Down

0 comments on commit 2667089

Please sign in to comment.