Property 'paymentRules' is incompatible with index signature. Type '{ id: string; venueId: string; spaceIds: string[]; priority: number; ruleType: RuleType; pricePerHour: Decimal | null; multiplier: Decimal | null; discountRate: Decimal | null; ... 8 more ...; updatedAt: Date; }[]' is not assignable to type 'SuperJSONValue'.... Property 'pricePerHour' is incompatible with index signature. Type 'Decimal | null' is not assignable to type 'SuperJSONValue'. Type 'Decimal' is not assignable to type 'SuperJSONValue'. Type 'Decimal' is not assignable to type 'SuperJSONObject'. Index signature for type 'string' is missing in type 'Decimal'.ts(2344)
Property 'paymentRules' is incompatible with index signature. Type '{ id: string; venueId: string; spaceIds: string[]; priority: number; ruleType: RuleType; pricePerHour: Decimal | null; multiplier: Decimal | null; discountRate: Decimal | null; ... 8 more ...; updatedAt: Date; }[]' is not assignable to type 'SuperJSONValue'.... Property 'pricePerHour' is incompatible with index signature. Type 'Decimal | null' is not assignable to type 'SuperJSONValue'. Type 'Decimal' is not assignable to type 'SuperJSONValue'. Type 'Decimal' is not assignable to type 'SuperJSONObject'. Index signature for type 'string' is missing in type 'Decimal'.ts(2344)
How to resolve??
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.