Type alias VersionValidatorOptions

VersionValidatorOptions: {
    error: string;
    latest: VersionValidatorLatestOptions;
    popup: VersionValidatorPopupOptions;
    version: string;
}

The options used to customize a VersionValidator instance.

Type declaration

  • error: string

    The error message to show when the version is invalid.

    Default

    "The application version doesn't match"
    

    Prettierignore

  • latest: VersionValidatorLatestOptions

    The options for how the middleware should behave if the requested version is latest.

  • popup: VersionValidatorPopupOptions

    The options for how to detect if the request comes from a popup and how to compose the post message the middleware will use to respond.

  • version: string

    The version used to validate the requests.

Generated using TypeDoc