paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
683 stars 54 forks source link

# Fix typescript error #161

Closed SturdyCat closed 3 years ago

SturdyCat commented 3 years ago

Fix typescript error

Argument of type '{ cursor?: { id?: string | null | undefined; name?: string | null | undefined; } | null | undefined; orderBy?: ({ createdAt?: "asc" | "desc" | null | undefined; id?: "asc" | "desc" | null | undefined; ... 4 more ...; updatedAt?: "asc" | ... 2 more ... | undefined; } | null)[] | null | undefined; skip?: number | ... ...' is not assignable to parameter of type 'Subset<FindFirstUserArgs, FindFirstUserArgs>'.
  Types of property 'where' are incompatible.
    Type '{ AND?: ...[] | null | undefined; createdAt?: { equals?: any; gt?: any; gte?: any; in?: any[] | null | undefined; lt?: any; lte?: any; not?: { equals?: any; gt?: any; gte?: any; in?: any[] | null | undefined; lt?: any; lte?: any; not?: ... | ... 1 more ... | undefined; notIn?: any[] | ... 1 more ... | undefined; } |...' is not assignable to type 'UserWhereInput | undefined'.
      Type 'null' is not assignable to type 'UserWhereInput | undefined'.ts(2345)
AhmedElywa commented 3 years ago

Thank you for your pull put we will use as any