You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
test('should be able to filter before and after select rpc',async()=>{
527
526
constres=awaitpostgrest
528
527
.rpc('get_user_profile',{
529
-
//@ts-expect-error will complain about missing the rest of the params
528
+
//@ts-expect-error Type '{ username: string; }' is missing the following properties from type '{ age_range: unknown; catchphrase: unknown; data: unknown; status: "ONLINE" | "OFFLINE" | null; username: string; }': age_range, catchphrase, data, status
test('polymorphic function with unnamed int param',async()=>{
848
847
constres=awaitpostgrest.rpc(
849
-
// @ts-expect-error should not have a function with a single unnamed params that isn't json/jsonb/text in types definitions
848
+
// @ts-expect-error Argument of type '"polymorphic_function_with_unnamed_integer"' is not assignable to parameter of type '"blurb_message" | "function_returning_row" | "function_returning_set_of_rows"
// TODO: there is no ways for now to distinguish between a valid optional argument or a missing one if the argument is unnamed
1002
1001
letexpected: SelectQueryError<'Could not choose the best candidate function between: public.polymorphic_function_with_unnamed_default(), public.polymorphic_function_with_unnamed_default( => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved'>
// TODO: there is no ways for now to distinguish between a valid optional argument or a missing one if the argument is unnamed
1064
1063
letexpected: SelectQueryError<'Could not choose the best candidate function between: public.polymorphic_function_with_unnamed_default_overload(), public.polymorphic_function_with_unnamed_default_overload( => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved'>
0 commit comments