We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use TypeScript and get TS error Type instantiation is excessively deep and possibly infinite.ts(2589) whenever I have below code.
Type instantiation is excessively deep and possibly infinite.ts(2589)
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.
The text was updated successfully, but these errors were encountered:
I resolved this by
type MyType = { name: string } & Record<string, Omit<QueryValue, 'QueryValueObject'>>
Sorry, something went wrong.
Hi @shonubijerry try:
interface MyType extends QueryValueObject { name: string }
No branches or pull requests
I use TypeScript and get TS error
Type instantiation is excessively deep and possibly infinite.ts(2589)
whenever I have below code.I think the issue is from here export type QueryValue = looks like QueryValue is deeply recursive.
The text was updated successfully, but these errors were encountered: