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
While starting work on a new project that is using weaviate I noticed that the
WeaviateClasscan only be imported from deep inside the package. And then aren't available to import due to the export rulesThis type is exposed on the
createFromSchemamethod 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