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

improvement: using strict types to avoid erorrs like issue 2164 #2220

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

ai16z-demirix
Copy link
Contributor

Relates to

#2164

Risks

Medium

Background

What does this PR do?

The key changes:

Added explicit return type Promise to the fetch function
Added explicit type RequestInit to the options object
Maintained proper ordering of URL | RequestInfo for the input parameter

What kind of change is this?

Improvements

The key changes:

Added explicit return type Promise to the fetch function
Added explicit type RequestInit to the options object
Maintained proper ordering of URL | RequestInfo for the input parameter

Issue: #2164

Documentation changes needed?

Testing

Where should a reviewer start?

core/src/generation.ts

Detailed testing steps

run pnpm build

Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@monilpat monilpat merged commit 9cc6c51 into elizaOS:develop Jan 16, 2025
3 checks passed
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.

3 participants