Type Alias EndpointFn<A, B>

EndpointFn<A, B>: ((request: Request<A>) => Response<B>)

The type of an endpoint function. This type definition is typically not directly used. Endpoint functions are usually defined as follows:

import * as ccfapp from '@microsoft/ccf-app';

export function myEndpoint(request: ccfapp.Request): ccfapp.Response
{ ... }

Type Parameters