Magek Framework
    Preparing search index...

    Interface CommandInterface<TCommand, THandleResult>

    Interface to get information from a TReflected class.

    Usage:

    function printName<T>(cls : Class<T>){
    console.log(cls.name)
    }

    printName(Person) // Prints "Person"
    interface CommandInterface<TCommand = unknown, THandleResult = unknown> {
        new CommandInterface(...args: any[]): TCommand;
        handle(command: TCommand, register: Register): Promise<THandleResult>;
    }

    Type Parameters

    • TCommand = unknown
    • THandleResult = unknown

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods