Skip to content

Commit bab41c8

Browse files
committed
fix schema
1 parent 6de9f35 commit bab41c8

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
@@ -169,7 +169,7 @@ export type BillingLimitPageData = BillingLimitResult & {
169169
currentSpendCents: number;
170170
};
171171

172-
/** Bridge webapp Zod schemas to BillingClient.fetch (separate Zod type instances). */
173-
export function asPlatformSchema(schema: z.ZodTypeAny) {
174-
return schema as unknown as Parameters<BillingClient["fetch"]>[1];
172+
/** Preserve a concrete schema type when passing it to BillingClient.fetch. */
173+
export function asPlatformSchema<TSchema extends z.ZodType>(schema: TSchema): TSchema {
174+
return schema;
175175
}

0 commit comments

Comments
 (0)