import type { z } from "zod"; import type { MaybePromise } from "@homarr/common/types"; export const createQueue = (input: TInput) => { return { withCallback: (callback: (data: z.infer) => MaybePromise) => { return { _input: input, _callback: callback, }; }, }; };