apollo-server-integrations / apollo-server-integration-cloudflare-workers

An integration to use Cloudflare Workers as a hosting service with Apollo Server
https://github.com/kimyvgy/worker-apollo-server-template
MIT License
16 stars 0 forks source link

Argument of type 'Request<unknown, CfProperties<unknown>>' is not assignable to parameter of type 'Request'. #113

Closed simplenotezy closed 6 months ago

simplenotezy commented 6 months ago

In my IDE I am seeing the following type errors:

image

Argument of type 'Request<unknown, CfProperties<unknown>>' is not assignable to parameter of type 'Request'.
  Type 'Request<unknown, CfProperties<unknown>>' is missing the following properties from type 'Request': cache, credentials, destination, mode, and 2 more.ts(2345)

Specifically from this line: https://github.com/kimyvgy/worker-apollo-server-template/blob/main/src/index.ts#L17

kimyvgy commented 6 months ago

@simplenotezy The PR #80 solved this issue. Please upgrade your app to v1.0.0.