@ima/cli
Version:
IMA.js CLI tool to build, develop and work with IMA.js applications.
9 lines (8 loc) • 393 B
TypeScript
import { UseServerProcessor } from '../types';
/**
* Special processor for server-only controllers. We're looking for
* controller classes and replacing the `load` method with a throwing
* method, to make sure the controller is not called on the client and
* if so, it throws a `GenericError` with a 404 status code.
*/
export declare const serverControllerProcessor: UseServerProcessor;