Skip to content

Spread operator causes Typescript ParserError #459

Closed
@KrisBraun

Description

@KrisBraun

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Using the new PostgREST spread operator works, but leads to a Typescript error:

error TS2339: Property 'invitees' does not exist on type 'ParserError<"Expected identifier at ...contact(id,name,email,contact_user_id))">

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Add spread (...) to a select().
  2. Compile with tsc

Expected behavior

Types should successfully be generated when queries include the spread operator.

System information

  • Version of supabase-js: 2.32.0
  • Version of Node.js: Cloudflare Workers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions