Rest
...args: Parameters<T>Rest
Should be used when defining an interface for a class that uses query methods.
function sendMessage(recipient: string, sender: string, priority: number, retryIfFails: boolean) {
// some logic...
return true;
}
// Both of the following types will be identical.
type SendMessageType = AsQueryMethod<typeof sendMessage>;
type SendMessageManualType = (recipient: string, sender: string, priority: number, retryIfFails: boolean) => boolean;
Generated using TypeDoc
Gets the signature (parameters with their types, and the return type) of a function type.