Interface RouterInterface

Interface for a router.

interface RouterInterface {
    run(argv?: string[]): void;
    runAsync(argv?: string[]): Promise<void>;
}

Implemented by

Methods

Methods

  • Runs the router.

    Parameters

    • Optionalargv: string[]

      The argument string.

    Returns void

  • Runs the router asynchronously.

    Parameters

    • Optionalargv: string[]

      The argument string.

    Returns Promise<void>