UNPKG

@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.

14 lines (13 loc) 642 B
import type { CallAction } from '../../ocpp/rpc/message.js'; import { OCPPVersion } from '../../ocpp/rpc/message.js'; /** * 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: (protocols: OCPPVersion[], action: CallAction) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;