JavaScript: Override type of successful response

Override the type of the returned data.

Examples

Override type of successful response

const \{ data \} = await supabase
  .from('countries')
  .select()
  .returns<Array<MyType>>()

Override type of object response

const \{ data \} = await supabase
  .from('countries')
  .select()
  .maybeSingle()
  .returns<MyType>()