-
Notifications
You must be signed in to change notification settings - Fork 518
[Bug] "DatasetPublic" Type Not Exported from Main Module #2034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @serkon , thank you for reporting this issue. We'll take a look at it soon and get back to you :) |
Thanks for the update @aadereiko , but I noticed that you've only exported the In general, TypeScript developers often need access to all interfaces defined in your To make it work on my end, I copied the declare global { // added this line
interface OpikConfig {
apiKey: string;
apiUrl?: string;
projectName: string;
workspaceName: string;
}
// ... other interface declarations
declare class OpikClient {
api: OpikApiClient;
config: OpikConfig;
spanBatchQueue: SpanBatchQueue;
traceBatchQueue: TraceBatchQueue;
spanFeedbackScoresBatchQueue: SpanFeedbackScoresBatchQueue;
traceFeedbackScoresBatchQueue: TraceFeedbackScoresBatchQueue;
private lastProjectNameLogged;
constructor(explicitConfig?: Partial<OpikConfig>);
private displayTraceLog;
trace: (traceData: TraceData) => Trace;
flush: () => Promise<void>;
}
// ... end of the file
} // added this line
export {}; // also added this line for global export With this approach, I can use all the types across my project without importing them manually. It would be great if you could consider exporting all interfaces from your SDK directly, so developers can benefit from better type support out of the box. Thanks! |
Hi team,
While integrating the opik package to Nuxt 3 project, I encountered a TypeScript issue due to the DatasetPublic type not being exported from the main module entry ("opik"). Although DatasetPublic is defined and exported in dist/Client-DIPn3Z2T.d.ts, it’s not accessible via:
This causes problems when using strongly typed refs:
Expected Behavior
I would expect DatasetPublic (and similar public-facing types) to be exported from the package root, so they can be imported directly:
Suggested Fix
Please consider explicitly exporting DatasetPublic and any other relevant types from the main module entry point.
Thank you!
The text was updated successfully, but these errors were encountered: