-
Notifications
You must be signed in to change notification settings - Fork 333
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
Add Workers Ai types #2033
Add Workers Ai types #2033
Conversation
67c9f6e
to
047dee7
Compare
3435b7e
to
445d72e
Compare
types/defines/ai.d.ts
Outdated
declare abstract class Ai { | ||
private readonly fetcher; | ||
private options; | ||
lastRequestId: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this property intentionally public? I can't find it in the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple comments, and it still looks like there are some none abstract classes—are those intended to be user constructable?
types/defines/ai.d.ts
Outdated
private readonly fetcher; | ||
private options; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This are internal implementation details that shouldn't be included
types/defines/ai.d.ts
Outdated
private readonly fetcher; | ||
private options; | ||
lastRequestId: string | null; | ||
constructor(fetcher: Fetcher); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't user constructable, so the constructor shouldn't be included
445d72e
to
d7e56df
Compare
d7e56df
to
7f3789c
Compare
* Add Workers Ai types * Improve ai types
No description provided.