Interface ICreateWithApiPropsOptions<TContext>

Options for createWithApiProps() function.

interface ICreateWithApiPropsOptions<TContext> {
    enhanceContext?: Nilable<EnhanceApiContext<TContext, any>>;
    onError?: Nilable<ServerErrorHandler>;
}

Type Parameters

Properties

enhanceContext?: Nilable<EnhanceApiContext<TContext, any>>

The optional and custom function, that enhances the TContext based object.

onError?: Nilable<ServerErrorHandler>

Custom and additional error handler.

Generated using TypeDoc