@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
13 lines (12 loc) • 587 B
TypeScript
import { CallAction, OCPPVersion } from '../../ocpp/rpc/message';
/**
* Decorators for module components.
*/
export declare const AS_HANDLER_METADATA = "AS_HANDLER_METADATA";
/**
* Decorator function for OCPP modules to expose methods within module classes as handlers for given call action.
*
* @param {CallAction} action - the call action parameter
* @return {PropertyDescriptor} - the property descriptor
*/
export declare const AsHandler: (protocol: OCPPVersion, action: CallAction) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;