eliza icon indicating copy to clipboard operation
eliza copied to clipboard

improvement: using strict types to avoid erorrs like issue 2164

Open ai16z-demirix opened this issue 11 months ago • 0 comments

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

ai16z-demirix avatar Jan 12 '25 21:01 ai16z-demirix