whoamiW
Convex Community3y ago
1 reply
whoami

convex helpers need to be updated with convex 0.16

Property 'filter' in type 'WrapQuery<T>' is not assignable to the same property in base type 'Query<T>'.
  Type '(predicate: (q: FilterBuilder<T>) => Expression<boolean>) => WrapQuery<T>' is not assignable to type '(predicate: (q: FilterBuilder<T>) => ExpressionOrValue<boolean>) => this'.
    Type 'WrapQuery<T>' is not assignable to type 'this'.
      'WrapQuery<T>' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'WrapQuery<T>'.


  filter(
    predicate: (q: FilterBuilder<T>) => Expression<boolean>,
  ): WrapQuery<T> {
    return new WrapQuery(this.q.filter(predicate), this.p)
  }


https://github.com/get-convex/convex-helpers/blob/4360d3e57a622e293407c9293a1fc745cc731dbe/convex/lib/rowLevelSecurity.ts
GitHub
A collection of useful code to complement the official packages. - convex-helpers/rowLevelSecurity.ts at 4360d3e57a622e293407c9293a1fc745cc731dbe · get-convex/convex-helpers
convex-helpers/rowLevelSecurity.ts at 4360d3e57a622e293407c9293a1fc...
Was this page helpful?