Skip to content

QueryValue is highly recursive #320

@shonubijerry

Description

@shonubijerry

I use TypeScript and get TS error Type instantiation is excessively deep and possibly infinite.ts(2589) whenever I have below code.

import { QueryValueObject } from 'fauna'

type MyType = {
  name: string
} & QueryValueObject

myFunc = (payload: MyType) => {
 return payload
}

myFunc({ name: 'olu'})

I think the issue is from here export type QueryValue = looks like QueryValue is deeply recursive.

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