Type alias MethodParameters<K>

MethodParameters<K>: Parameters<Methods[K]>[0]

The parameters of a given method from Methods

Type Parameters

Example

const params: MethodParameters<"sendMessage"> = { chat_id: 123, text: "Hello" };