There was an error while loading. Please reload this page.
1 parent 002a15e commit ef48f3dCopy full SHA for ef48f3d
1 file changed
apps/webapp/app/services/billingLimit.schemas.ts
@@ -175,7 +175,7 @@ export type BillingLimitPageData = BillingLimitResult & {
175
currentSpendCents: number;
176
};
177
178
-/** Bridge webapp Zod schemas to BillingClient.fetch (separate Zod type instances). */
179
-export function asPlatformSchema(schema: z.ZodTypeAny) {
180
- return schema as unknown as Parameters<BillingClient["fetch"]>[1];
+/** Preserve a concrete schema type when passing it to BillingClient.fetch. */
+export function asPlatformSchema<TSchema extends z.ZodType>(schema: TSchema): TSchema {
+ return schema;
181
}
0 commit comments