Skip to content

Commit

Permalink
fixing typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Oct 8, 2023
1 parent 82088c3 commit 7cfb420
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/context.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { BulkheadOptions } from "./middlewares/index";
import Endpoint from "./registry/endpoint";
import Endpoint = require("./registry/endpoint");
import type { CallingOptions, MCallDefinition, MCallCallingOptions } from "./service-broker";
import Service from "./service";
import Span from "./tracing/span";
import Service = require("./service");
import Span = require("./tracing/span");
import type { ActionHandler, ActionParams, ActionSchema, TracingEventOptions } from "./service";
import type ServiceBroker = require("./service-broker");

Expand Down
2 changes: 1 addition & 1 deletion src/errors.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ServiceBroker from "./service-broker";
import type ServiceBroker = require("./service-broker");

export declare class ExtendableError extends Error {
message: string;
Expand Down
2 changes: 1 addition & 1 deletion src/registry/endpoint-event.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Endpoint = require("./endpoint");
import type Service from "../service";
import type Service = require("../service");
import type { EventSchema } from "../context";

declare class EventEndpoint extends Endpoint {
Expand Down
6 changes: 3 additions & 3 deletions src/service-broker.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { EventEmitter2 } from "eventemitter2";
import type AsyncStorage from "./async-storage";
import type AsyncStorage = require("./async-storage");
import type { Base as BaseCacher } from "./cachers";
import type { ContextParentSpan } from "./context";
import type {
Expand All @@ -12,12 +12,12 @@ import type { Logger, LoggerConfig } from "./logger-factory";
import type { MetricRegistry, MetricRegistryOptions } from "./metrics";
import type { Middleware, MiddlewareCallHandlerOptions } from "./middleware";
import type { BulkheadOptions } from "./middlewares/index";
import type ServiceRegistry from "./registry";
import type ServiceRegistry = require("./registry");
import type { Base as BaseDiscoverer, RegistryDiscovererOptions } from "./registry/discoverers";
import type { Base as BaseSerializer } from "./serializers";
import type { ActionHandler, ServiceSchema } from "./service";
import type { Tracer, TracerOptions } from "./tracing";
import type Transit from "./transit";
import type Transit = require("./transit");
import type { Base as BaseTransporter } from "./transporters";
import type { Base as BaseValidator, ValidatorNames, ValidatorOptions } from "./validators";
import type Context = require("./context");
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"declaration": true,
"declarationDir": "types",
"outDir": "dist",
"target": "ES2022"
"target": "ES2022",
"moduleResolution": "node",
},
"include": ["**.js"],
"exclude": ["node_modules", ".eslintrc.js", "prettier.config.js", "types"]
Expand Down

0 comments on commit 7cfb420

Please sign in to comment.