Skip to content

fix: use isolatedModules: true in tsconfig.json #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,33 @@ import CONSTANTS from "./constants";
export {
// From event
CloudEvent,
CloudEventV1,
CloudEventV1Attributes,
Version,
ValidationError,
Mode,
HTTP,
Kafka,
MQTT,
MQTTMessageFactory,
emitterFor,
Emitter,
// From Constants
CONSTANTS
};

export type {
CloudEventV1,
CloudEventV1Attributes,
// From message
Headers,
Mode,
Binding,
Message,
Deserializer,
Serializer,
HTTP,
Kafka,
KafkaEvent,
KafkaMessage,
MQTT,
MQTTMessage,
MQTTMessageFactory,
// From transport
TransportFunction,
EmitterFunction,
emitterFor,
Emitter,
Options,
// From Constants
CONSTANTS,
Options
};
5 changes: 4 additions & 1 deletion src/message/kafka/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { sanitize } from "../http/headers";

// Export the binding implementation and message interface
export {
Kafka,
Kafka
};

export type {
KafkaMessage,
KafkaEvent
};
Expand Down
5 changes: 2 additions & 3 deletions src/message/mqtt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
import { Binding, Deserializer, CloudEvent, CloudEventV1, CONSTANTS, Message, ValidationError, Headers } from "../..";

export {
MQTT,
MQTTMessage,
MQTTMessageFactory
MQTT, MQTTMessageFactory
};
export type { MQTTMessage };

/**
* Extends the base {@linkcode Message} interface to include MQTT attributes, some of which
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"outDir": "./dist",
"declaration": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"isolatedModules": true,
},
"compileOnSave": true,
"include": [
Expand Down