LocalApiInput
interfaz
Entrada de una llamada local a la API con createLocalCalls().api.
ts
import type { LocalApiInput } from "@meekojs/meeko/server";Código fuente src/server/runtime/local.ts:53
Declaración #
ts
interface LocalApiInput {
params?: Readonly<Record<string, string>>
query?: Readonly<Record<string, string | number | boolean | readonly string[] | null | undefined>>
body?: unknown
}Ejemplo #
ts
import type { LocalApiInput } from "@meekojs/meeko/server";
const input: LocalApiInput = { params: { id: "123" }, query: { tab: "profile" } };
const response = await calls.api("users.byId", "GET", input);Propiedades #
query
#
query?: Readonly<Record<string, string | number | boolean | readonly string[] | null | undefined>>Query string; omite null y undefined.