Skip to content

Commit ef48f3d

Browse files
committed
fix schema
1 parent 002a15e commit ef48f3d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/webapp/app/services/billingLimit.schemas.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export type BillingLimitPageData = BillingLimitResult & {
175175
currentSpendCents: number;
176176
};
177177

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];
178+
/** Preserve a concrete schema type when passing it to BillingClient.fetch. */
179+
export function asPlatformSchema<TSchema extends z.ZodType>(schema: TSchema): TSchema {
180+
return schema;
181181
}

0 commit comments

Comments
 (0)