UNPKG

@eggjs/controller-decorator

Version:

tegg controller decorator

7 lines (6 loc) 805 B
import type { WebSocketFetchLifecycleMethodParams, WebSocketFetchMethodParams } from '@eggjs/tegg-types'; export declare function WebSocketFetchMethod(param?: WebSocketFetchMethodParams): (target: any, propertyKey: PropertyKey) => void; export declare function WebSocketFetchOnConnection(param?: WebSocketFetchLifecycleMethodParams): (target: any, propertyKey: PropertyKey) => void; export declare function WebSocketFetchOnOpen(param?: WebSocketFetchLifecycleMethodParams): (target: any, propertyKey: PropertyKey) => void; export declare function WebSocketFetchOnError(param?: WebSocketFetchLifecycleMethodParams): (target: any, propertyKey: PropertyKey) => void; export declare function WebSocketFetchOnClose(param?: WebSocketFetchLifecycleMethodParams): (target: any, propertyKey: PropertyKey) => void;