graphql-static-binding icon indicating copy to clipboard operation
graphql-static-binding copied to clipboard

Class 'Prisma' incorrectly extends base class 'Prisma' with strictFunctionTypes

Open marktani opened this issue 6 years ago • 1 comments

Bug Report

Current behavior After trying to compile typescript, I get the following error:

src/generated/prisma.ts(6790,14): error TS2415: Class 'Prisma' incorrectly extends base class 'Prisma'.
  Types of property 'query' are incompatible.
    Type 'Query' is not assignable to type 'QueryMap'.
      Index signature is missing in type 'Query'.

when "strictFunctionTypes": true is used in tsconfig.json.

Reproduction

https://github.com/SpaceK33z/prisma-typescript-error

Expected behavior?

"strictFunctionTypes": true is supported


Thanks to @iamclaytonray, @SpaceK33z, @kbrandwijk for their input in the initially reported issue.

marktani avatar Mar 09 '18 14:03 marktani

Looks like duplicate #64

mctep avatar Apr 05 '18 17:04 mctep