Skip to content

Version v2.39.2 and above break types #974

@sg3510

Description

@sg3510

Likely because of bumping postgrest-js with v2.39.2 but when using strict in tsconfig and any code like this:

const { error } = await supabase
      .from('Messages')
      .update({ deletedAt: moment().toISOString()})

gives me Argument of type '{ deletedAt: string; }' is not assignable to parameter of type 'never'.

I have confirmed I have the latest generated types.

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

See above

To Reproduce

Upgrade to v2.39.2 or above

Expected behavior

TS linter shouldn't complain

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 2.39.2]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions