cli icon indicating copy to clipboard operation
cli copied to clipboard

Materalized views aren't available in generated typescript types

Open madeleineostoja opened this issue 3 years ago • 1 comments

Bug report

Describe the bug

The generated typescript definitions from Supabase CLI do not include definitions for materalized views under Database['public']['Views']

To Reproduce

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

  1. Create a database with a materalized view
  2. Initialise supabase to generate tyhpes
  3. Try to access generated types for materialized view
  4. See error

Expected behavior

Supabase generated type definitions should include materialized views under the ['public']['Views'] schema

System information

  • OS: macOS
  • Version of supabase: latest CLI
  • Version of Node.js: 18.3.0

madeleineostoja avatar Oct 09 '22 03:10 madeleineostoja

thanks for this report @madeleineostoja - transferring it to the CLI team

kiwicopple avatar Oct 12 '22 13:10 kiwicopple