Skip to content

Types: Please export public types #404

@drusellers

Description

@drusellers

While starting work on a new project that is using weaviate I noticed that the WeaviateClass can only be imported from deep inside the package. And then aren't available to import due to the export rules

import { WeaviateClass } from "weaviate-client/dist/node/esm/openapi/types.js";
import { WeaviateClass } from "weaviate-client/dist/node/cjs/openapi/types.js";

This type is exposed on the createFromSchema method of the Collections interface.

https://github.com/weaviate/typescript-client/blob/main/src/collections/index.ts#L153

Please export public types, we have had to mirror this type in our own code base - which could allow for drift we don't mean.

TY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions