mirror of https://github.com/zulip/zulip.git
stats: Fix @typescript-eslint/explicit-function-return-type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
18b8d0f1b2
commit
5bde07c842
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue