Skip to content
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

fix(types): avoid unknown not assignable error #1259

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

Gryundig
Copy link

No description provided.

…wn' is not assignable to type 'WithRequestID<T>'."
@Gryundig Gryundig requested a review from a team as a code owner January 12, 2025 02:00
@RobertCraigie RobertCraigie changed the base branch from master to next January 13, 2025 13:41
@RobertCraigie RobertCraigie changed the title fix "node_modules/openai/src/core.ts:72:5 - error TS2322: Type 'unknown' is not assignable to type 'WithRequestID<T>'." fix(types): avoid unknown not assignable error Jan 13, 2025
@RobertCraigie
Copy link
Collaborator

@Gryundig thanks for the PR but it's worth noting that you should only run into this if you're importing from the src directory, which is only there for better auto complete.

e.g.

import 'openai/src';

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