Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

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

Open
marktani opened this issue Mar 9, 2018 · 1 comment

Comments

@marktani
Copy link

marktani commented Mar 9, 2018

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.

@mctep
Copy link

mctep commented Apr 5, 2018

Looks like duplicate #64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants