diff --git a/auth/index.ts b/auth/index.ts index 7b6a76630..cd3e00e22 100644 --- a/auth/index.ts +++ b/auth/index.ts @@ -22,8 +22,6 @@ export { getAuthenticatorFromEnvironment, } from 'ibm-cloud-sdk-core'; -export { - CouchdbSessionAuthenticator, - CouchdbSessionAuthenticatorOptions, -} from './couchdbSessionAuthenticator'; +export { CouchdbSessionAuthenticator } from './couchdbSessionAuthenticator'; +export type { CouchdbSessionAuthenticatorOptions } from './couchdbSessionAuthenticator'; export { SessionTokenManager } from './sessionTokenManager'; diff --git a/index.ts b/index.ts index 9a6635fce..fb58eccd0 100644 --- a/index.ts +++ b/index.ts @@ -26,8 +26,8 @@ export { BasicAuthenticator, IamAuthenticator, CouchdbSessionAuthenticator, - CouchdbSessionAuthenticatorOptions, } from './auth'; +export type { CouchdbSessionAuthenticatorOptions } from './auth'; export { ChangesFollower } from './cloudant/features/changesFollower'; export { Stream } from './cloudant/features/stream'; @@ -35,4 +35,4 @@ export { Pagination, PagerType, } from './cloudant/features/pagination/pagination'; -export { Pager } from './cloudant/features/pagination/pager'; +export type { Pager } from './cloudant/features/pagination/pager'; diff --git a/tsconfig.json b/tsconfig.json index c23b76585..a25ae080a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,9 +7,11 @@ "es2022", "dom" ], + "isolatedModules": true, // TS6 changed strict default to true, generated code produces a lot of errors so use false "strict": false, /* Build source files into a folder called `dist` to maintain clean directories, free of ts-generated files */ + "rootDir": ".", "outDir": "./dist", /* Specify library files to be included in the compilation: */