Skip to content

Generated types incorrectly mark interval type as unknown #921

Open
@icopp

Description

@icopp

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

Interval columns aren't correctly inferred as strings.

To Reproduce

  • Create a table with an interval column
  • Run supabase gen types --lang=typescript --local
  • See that the interval column is generated as unknown

Expected behavior

The interval column should be generated as string.

Screenshots

n/a

System information

  • Version of supabase (not supabase-js): 2.20.5
  • Version of Node.js: 22.12.0

Additional context

The format of the string depends on SET intervalstyle, but it's always a string.

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