Skip to content

Conversation

antas-marcin
Copy link
Collaborator

No description provided.

src/index.ts Outdated
export * from './cluster';
export * from './connection';
export * from './embedded';
export * from './data/replication';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since ./data is already being exported in this file, can you instead re-export ConsistencyLevel from within the data module? Like this:

src/data/index.ts:

// <all the other re-exports>
export type { ConsistencyLevel } from './replication';

Then, the ConsistencyLevel type will still be available like this:

import weaviate, {  ConsistencyLevel } from 'weaviate-ts-client';

@antas-marcin antas-marcin force-pushed the export-consistency-level-type branch from 8af41d6 to 94a7c84 Compare April 7, 2023 14:15
@parkerduckworth parkerduckworth merged commit d3289f0 into main Apr 7, 2023
@parkerduckworth parkerduckworth deleted the export-consistency-level-type branch April 7, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants