Skip to main content

DelegatedResolver

@h4ad/serverless-adapter > DelegatedResolver

(type) DelegatedResolver

The type that represents a delegate resolver that is passed to the adapter to handle what to do when an error occurs during forwarding.

Signature:

export type DelegatedResolver<TResponse> = \{
succeed: (response: TResponse) => void;
fail: (error: Error) => void;
};