eliza
eliza copied to clipboard
improvement: using strict types to avoid erorrs like issue 2164
Relates to
https://github.com/elizaOS/eliza/issues/2164
Risks
Medium
Background
What does this PR do?
The key changes:
Added explicit return type Promise<Response> 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<Response> to the fetch function Added explicit type RequestInit to the options object Maintained proper ordering of URL | RequestInfo for the input parameter
Issue: https://github.com/elizaOS/eliza/issues/2164
Documentation changes needed?
Testing
Where should a reviewer start?
core/src/generation.ts
Detailed testing steps
run pnpm build