interface LocationMapper {
    canHandle(location): MaybePromise<number>;
    map(location): MaybePromise<string>;
}

Implemented by

Methods

Methods

  • Should return with a positive number if the current contribution can handle the given location. The number indicates the priority of the location mapper. If it is not a positive number, it means, the contribution cannot handle the location.

    Parameters

    • location: string

    Returns MaybePromise<number>