Skip to content

docs: middleware examples are not valid TS #5822

@mortifia

Description

@mortifia

https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-express

i get error with "No surcharge corresponds to this call." with

await new Promise(resolve => httpServer.listen({ port: 4000 }, resolve));

httpServer.listen is already asynchronous so why not have to use this ? :

await httpServer.listen({ port: 4000 });

with node v14, typescript, @types/node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions