0

I am starting an ApolloServer instance

const server = new ApolloServer({
    typeDefs,
    resolvers,
    plugins: [ApolloServerPluginDrainHttpServer({ httpServer })],
});

in my code the "server" constant is underlined with the error "Unsafe assignment of 'any' value" @typescript-eslint/no-unsafe-assignment.

I don't understand this message, I would have thought that the type of the "server" constant is implied from the type of ApolloServer (which is shown when I mouse over). Am I missing something?

Antfish
  • 1,313
  • 2
  • 22
  • 41

1 Answers1

0

This turned out to be an issue with the ESlint configuration.

Antfish
  • 1,313
  • 2
  • 22
  • 41