mirror of
https://github.com/vale981/apollo-server
synced 2025-03-04 17:21:42 -05:00
![]() * Add AS constructor with context usage to tests * fix(typing): Context template type should be 'object' and not 'any' ```context?: ContextFunction<ExpressContext, any> | Context<any>;``` is ```context?: ContextFunction<ExpressContext, any> | any;``` which is ```context?: any;``` https://github.com/Microsoft/TypeScript/issues/18568 Since the ContextFunction<...> part is ignored, no type hinting will be provided when a function is passed to `context`. We don't really mean `any`, we mean an object with any shape, so we should use `object` instead * fix(typing): type ContextFunction params separately from resulting context object * Update changelog * rename: ContextContent -> ProducedContext |
||
---|---|---|
.. | ||
apollo-cache-control | ||
apollo-datasource | ||
apollo-datasource-rest | ||
apollo-engine-reporting | ||
apollo-engine-reporting-protobuf | ||
apollo-server | ||
apollo-server-azure-functions | ||
apollo-server-cache-memcached | ||
apollo-server-cache-redis | ||
apollo-server-caching | ||
apollo-server-cloud-functions | ||
apollo-server-cloudflare | ||
apollo-server-core | ||
apollo-server-env | ||
apollo-server-errors | ||
apollo-server-express | ||
apollo-server-fastify | ||
apollo-server-hapi | ||
apollo-server-integration-testsuite | ||
apollo-server-koa | ||
apollo-server-lambda | ||
apollo-server-micro | ||
apollo-server-plugin-base | ||
apollo-server-testing | ||
apollo-tracing | ||
graphql-extensions |