stats: Fix @typescript-eslint/explicit-function-return-type.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-09-23 15:31:56 -07:00 committed by Anders Kaseorg
parent 18b8d0f1b2
commit 5bde07c842
1 changed files with 3 additions and 3 deletions

View File

@ -55,9 +55,9 @@ type DataByTime<T> = {
const datum_schema: z.ZodType<Plotly.Datum> = z.any(); const datum_schema: z.ZodType<Plotly.Datum> = z.any();
// Define a schema factory function for the utility generic type // Define a schema factory function for the utility generic type
// The inferred types from zod have to be used to type the return values function instantiate_type_DataByEveryoneUser<T extends z.ZodTypeAny>(
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type schema: T,
function instantiate_type_DataByEveryoneUser<T extends z.ZodTypeAny>(schema: T) { ): z.ZodObject<{everyone: T; user: T}> {
return z.object({ return z.object({
everyone: schema, everyone: schema,
user: schema, user: schema,