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
For the rules object (just like in the blog post) I'm trying to do const rules: Rules<QueryCtx, DataModel> = { and getting a type error:
Type ' my stuff here ...' does not satisfy the constraint 'GenericDataModel'.
Property 'users' is incompatible with index signature.
Type '{ document: { _id: Id<"users">; _creationTime: number; stripeSubscriptionStatus?: string | undefined ...' is not assignable to type 'GenericTableInfo'.
Types of property 'document' are incompatible.
Type '{ _id: Id<"users">; _creationTime: number; stripeSubscriptionStatus?: string | undefined; ... }' is not assignable to type 'GenericDocument'.
Property 'stripeSubscriptionStatus' is incompatible with index signature.
Type 'string | undefined' is not assignable to type 'Value'.
Type 'undefined' is not assignable to type 'Value'.ts(2344)
My users table schema has stripeSubscriptionStatus: v.optional(v.string()),, which (from my understanding) is ok to do within a table schema in Convex