diff --git a/packages/bolt-connection/tsconfig.json b/packages/bolt-connection/tsconfig.json index 89506a622..7e58a91e7 100644 --- a/packages/bolt-connection/tsconfig.json +++ b/packages/bolt-connection/tsconfig.json @@ -9,7 +9,8 @@ "moduleResolution": "node", "downlevelIteration": true, "outDir": "lib", - "allowJs": true + "allowJs": true, + "isolatedModules": true }, "include": ["src/**/*.js"] } diff --git a/packages/core/src/graph-types.ts b/packages/core/src/graph-types.ts index 49047235b..dbd442533 100644 --- a/packages/core/src/graph-types.ts +++ b/packages/core/src/graph-types.ts @@ -380,8 +380,6 @@ function isPath(obj: object): obj is Path { } export { - StandardDate, - NumberOrInteger, Node, isNode, Relationship, @@ -393,3 +391,7 @@ export { PathSegment, isPathSegment } +export type { + StandardDate, + NumberOrInteger, +} diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 18509d07b..404541824 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -168,8 +168,6 @@ export { LocalDateTime, LocalTime, Time, - StandardDate, - NumberOrInteger, Node, isNode, Relationship, @@ -185,19 +183,15 @@ export { queryType, ServerInfo, Notification, - NotificationPosition, Plan, ProfiledPlan, QueryStatistics, Stats, Result, - QueryResult, - ResultObserver, ConnectionProvider, Connection, Transaction, Session, - TransactionConfig, Driver, types, driver, @@ -205,4 +199,13 @@ export { auth } +export type { + StandardDate, + NumberOrInteger, + NotificationPosition, + QueryResult, + ResultObserver, + TransactionConfig, +}; + export default forExport diff --git a/packages/core/src/result-summary.ts b/packages/core/src/result-summary.ts index 49cb6c23a..3daabebd2 100644 --- a/packages/core/src/result-summary.ts +++ b/packages/core/src/result-summary.ts @@ -536,11 +536,13 @@ export { queryType, ServerInfo, Notification, - NotificationPosition, Plan, ProfiledPlan, QueryStatistics, Stats } +export type { + NotificationPosition, +} export default ResultSummary diff --git a/packages/core/src/result.ts b/packages/core/src/result.ts index a5d841a91..2153937c6 100644 --- a/packages/core/src/result.ts +++ b/packages/core/src/result.ts @@ -339,4 +339,4 @@ function replaceStacktrace(error: Error, newStack?: string | null) { } export default Result -export { QueryResult, ResultObserver } +export type { QueryResult, ResultObserver } diff --git a/packages/core/src/session.ts b/packages/core/src/session.ts index b790416fd..2597a140c 100644 --- a/packages/core/src/session.ts +++ b/packages/core/src/session.ts @@ -446,4 +446,4 @@ function _createTransactionExecutor(config?: { } export default Session -export { TransactionConfig } +export type { TransactionConfig } diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 69799a293..f68b67539 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -10,7 +10,8 @@ "downlevelIteration": true, "outDir": "lib", "declaration": true, - "declarationDir": "types" + "declarationDir": "types", + "isolatedModules": true }, "include": ["src/**/*.ts"] } diff --git a/packages/neo4j-driver-lite/src/index.ts b/packages/neo4j-driver-lite/src/index.ts index 7e5716659..a972f951d 100644 --- a/packages/neo4j-driver-lite/src/index.ts +++ b/packages/neo4j-driver-lite/src/index.ts @@ -473,26 +473,18 @@ export { temporal, Driver, Result, - QueryResult, Record, ResultSummary, - AuthToken, - Config, - EncryptionLevel, - TrustStrategy, - SessionMode, Node, Relationship, UnboundRelationship, PathSegment, Path, Integer, - ResultObserver, Plan, ProfiledPlan, QueryStatistics, Notification, - NotificationPosition, ServerInfo, Session, Transaction, @@ -506,4 +498,14 @@ export { ConnectionProvider, Connection } +export type { + QueryResult, + AuthToken, + Config, + EncryptionLevel, + TrustStrategy, + SessionMode, + ResultObserver, + NotificationPosition, +} export default forExport diff --git a/packages/neo4j-driver-lite/tsconfig.json b/packages/neo4j-driver-lite/tsconfig.json index 69799a293..f68b67539 100644 --- a/packages/neo4j-driver-lite/tsconfig.json +++ b/packages/neo4j-driver-lite/tsconfig.json @@ -10,7 +10,8 @@ "downlevelIteration": true, "outDir": "lib", "declaration": true, - "declarationDir": "types" + "declarationDir": "types", + "isolatedModules": true }, "include": ["src/**/*.ts"] }